Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Api.Crypto.Ed25519Bip32
Contents
Description
BIP32-Ed25519 digital signatures.
Synopsis
- data Ed25519Bip32DSIGN
- data family SigDSIGN v
- data family SignKeyDSIGN v
- data family VerKeyDSIGN v
- xPrvToBytes :: XPrv -> ByteString
- xPrvFromBytes :: ByteString -> Maybe XPrv
Documentation
data Ed25519Bip32DSIGN Source #
Instances
data family SigDSIGN v Source #
Instances
data family SignKeyDSIGN v Source #
Instances
data family VerKeyDSIGN v Source #
Instances
Serialisation
xPrvToBytes :: XPrv -> ByteString Source #
Serialise an
XPrv
to a
ByteString
(96 bytes).
In
cardano-crypto
, an
XPrv
was originally serialised using the
following 128-byte binary format:
Extended Private Key (64 bytes) | Public Key (32 bytes) | Chain Code (32 bytes) |
However, this function serialises an
XPrv
using a more compact 96-byte
binary format:
Extended Private Key (64 bytes) | Chain Code (32 bytes) |
xPrvFromBytes :: ByteString -> Maybe XPrv Source #
Deserialise an
XPrv
from a
ByteString
(96 bytes).
In
cardano-crypto
, an
XPrv
was originally deserialised using the
following 128-byte binary format:
Extended Private Key (64 bytes) | Public Key (32 bytes) | Chain Code (32 bytes) |
However, this function deserialises an
XPrv
using a more compact
96-byte binary format:
Extended Private Key (64 bytes) | Chain Code (32 bytes) |