Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Byron key types and their Key
class instances
Synopsis
- data ByronKey
- data ByronKeyLegacy
- data family AsType t
- data family Hash keyrole ∷ Type
- data family SigningKey keyrole ∷ Type
- data family VerificationKey keyrole ∷ Type
- data ByronKeyFormat key where
- class IsByronKey key where
- byronKeyFormat ∷ ByronKeyFormat key
- data SomeByronSigningKey
- toByronSigningKey ∷ SomeByronSigningKey → SigningKey
Key types
Byron-era payment keys. Used for Byron 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 Byron era. The Shelley era PaymentKey
s do not include
a chaincode. It is safe to use a zero or random chaincode for new Byron keys.
This is a type level tag, used with other interfaces like Key
.
Instances
data ByronKeyLegacy 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 Hash keyrole ∷ Type Source #
Instances
data family SigningKey keyrole ∷ Type Source #
The type of cryptographic signing key, for each key role.
Instances
data family VerificationKey keyrole ∷ Type Source #
The type of cryptographic verification key, for each key role.
Instances
Legacy format
data ByronKeyFormat key where Source #
data SomeByronSigningKey Source #