| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Bcc.Api.KeysCole
Description
Cole key types and their Key class instances
Synopsis
- data ColeKey
 - data ColeKeyLegacy
 - data family AsType t
 - data family VerificationKey keyrole ∷ Type
 - data family SigningKey keyrole ∷ Type
 - data family Hash keyrole ∷ Type
 - class IsColeKey key where
- coleKeyFormat ∷ ColeKeyFormat key
 
 - data ColeKeyFormat key where
 - data SomeColeSigningKey
 - toColeSigningKey ∷ SomeColeSigningKey → SigningKey
 
Key types
Cole-era payment keys. Used for Cole addresses and witnessing transactions that spend from these addresses.
These use Ed25519 but with a 32byte "chaincode" used in HD derivation.
 The inclusion of the chaincode is a design mistake but one that cannot
 be corrected for the Cole era. The Sophie era PaymentKeys do not include
 a chaincode. It is safe to use a zero or random chaincode for new Cole keys.
This is a type level tag, used with other interfaces like Key.
Instances
data ColeKeyLegacy Source #
Instances
Data family instances
A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.
Values of this type are passed to deserialisation functions for example.
Instances
data family VerificationKey keyrole ∷ Type Source #
The type of cryptographic verification key, for each key role.
Instances
data family SigningKey keyrole ∷ Type Source #
The type of cryptographic signing key, for each key role.
Instances
data family Hash keyrole ∷ Type Source #
Instances
Legacy format
class IsColeKey key where Source #
Methods
coleKeyFormat ∷ ColeKeyFormat key Source #
Instances
| IsColeKey ColeKeyLegacy Source # | |
Defined in Bcc.Api.KeysCole Methods  | |
| IsColeKey ColeKey Source # | |
Defined in Bcc.Api.KeysCole Methods  | |
data ColeKeyFormat key where Source #
Constructors
| ColeLegacyKeyFormat ∷ ColeKeyFormat ColeKeyLegacy | |
| ColeModernKeyFormat ∷ ColeKeyFormat ColeKey | 
data SomeColeSigningKey Source #
Constructors
| AColeSigningKeyLegacy (SigningKey ColeKeyLegacy) | |
| AColeSigningKey (SigningKey ColeKey) | 
toColeSigningKey ∷ SomeColeSigningKey → SigningKey Source #