Crate ed25519_bip32

Source
Expand description

Ed25519 key handling using BIP32 style derivation

Ed25519 is notable for its public key generation involving hashing and bit manipulations, which seemingly prevents its use for BIP32. Instead this package use the ed25519 is extended form (post-hashing).

BIP32 allows derivation given a private key, of up to 2^32 children, using two different derivation scheme (soft or hard).

In soft derivation, the important property is that given the parent public key, one can derive all softly derived children public key.

Structs§

Signature
a signature with an associated type tag
XPrv
HDWallet extended private key
XPub
Extended Public Key (Point + ChainCode)

Enums§

DerivationError
DerivationScheme
Ed25519-bip32 Scheme Derivation version
PrivateKeyError
Possible errors during conversion from bytes
PublicKeyError
Possible errors during conversion from bytes
SignatureError
Possible errors during conversion from bytes

Constants§

SIGNATURE_SIZE
Extended signature size in bytes
XPRV_SIZE
Extended Private key size in bytes
XPUB_SIZE
Extended Public key size in bytes

Type Aliases§

DerivationIndex
Derivation index is a 32 bits number representing a type of derivation and a 31 bits number.