Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
data
BootstrapWitness
crypto
where
- pattern BootstrapWitness :: Crypto crypto => VKey ' Witness crypto -> SignedDSIGN crypto ( Hash crypto EraIndependentTxBody ) -> ChainCode -> ByteString -> BootstrapWitness crypto
- newtype ChainCode = ChainCode { }
- bootstrapWitKeyHash :: forall crypto. Crypto crypto => BootstrapWitness crypto -> KeyHash ' Witness crypto
- unpackByronVKey :: forall crypto. DSIGN crypto ~ Ed25519DSIGN => VerificationKey -> ( VKey ' Witness crypto, ChainCode )
- makeBootstrapWitness :: forall crypto. ( DSIGN crypto ~ Ed25519DSIGN , Crypto crypto) => Hash crypto EraIndependentTxBody -> SigningKey -> Attributes AddrAttributes -> BootstrapWitness crypto
- verifyBootstrapWit :: forall crypto. ( Crypto crypto, Signable ( DSIGN crypto) ( Hash crypto EraIndependentTxBody )) => Hash crypto EraIndependentTxBody -> BootstrapWitness crypto -> Bool
Documentation
data BootstrapWitness crypto where Source #
pattern BootstrapWitness :: Crypto crypto => VKey ' Witness crypto -> SignedDSIGN crypto ( Hash crypto EraIndependentTxBody ) -> ChainCode -> ByteString -> BootstrapWitness crypto |
Instances
Instances
Eq ChainCode Source # | |
Show ChainCode Source # | |
Generic ChainCode Source # | |
NFData ChainCode Source # | |
Defined in Cardano.Ledger.Shelley.Address.Bootstrap |
|
ToCBOR ChainCode Source # | |
FromCBOR ChainCode Source # | |
NoThunks ChainCode Source # | |
type Rep ChainCode Source # | |
Defined in Cardano.Ledger.Shelley.Address.Bootstrap
type
Rep
ChainCode
=
D1
('
MetaData
"ChainCode" "Cardano.Ledger.Shelley.Address.Bootstrap" "cardano-ledger-shelley-0.1.0.0-4LNBTpyKcsy6EW18a3tTt2" '
True
) (
C1
('
MetaCons
"ChainCode" '
PrefixI
'
True
) (
S1
('
MetaSel
('
Just
"unChainCode") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
ByteString
)))
|
bootstrapWitKeyHash :: forall crypto. Crypto crypto => BootstrapWitness crypto -> KeyHash ' Witness crypto Source #
Rebuild the addrRoot of the corresponding address.
unpackByronVKey :: forall crypto. DSIGN crypto ~ Ed25519DSIGN => VerificationKey -> ( VKey ' Witness crypto, ChainCode ) Source #
makeBootstrapWitness :: forall crypto. ( DSIGN crypto ~ Ed25519DSIGN , Crypto crypto) => Hash crypto EraIndependentTxBody -> SigningKey -> Attributes AddrAttributes -> BootstrapWitness crypto Source #
verifyBootstrapWit :: forall crypto. ( Crypto crypto, Signable ( DSIGN crypto) ( Hash crypto EraIndependentTxBody )) => Hash crypto EraIndependentTxBody -> BootstrapWitness crypto -> Bool Source #