Expand description
§seed-utils
Note: The word seed
is interchangeably used for bip39 mnemonics.
- Derive bip85 child seeds
- Derive bip32 root xpubs and xprvs from seeds
- Derive account xpubs and xprvs
- XOR seeds
- Truncate (reduce entropy to keep first n words of a seed)
- Extend (extend entropy to add words to a seed)
Enums§
Functions§
- derive_
child_ seeds - Derives child seeds of
seed
with an index range of[start, end)
. Each seed’s word count will be exactlyword_count
. Returns list of tuples containing the derived seeds and their indexes. - derive_
root_ xprv - Derives the master private key of a
seed
at the bip32 root. - derive_
root_ xpub - Derives the master public key of a
seed
at the bip32 root. - derive_
xprvs_ from_ seed - Derives account extended private keys of a
seed
with an index range[start, end)
and the derivation path ofversion
. Returns a tuple of the derivation path and its derived xprv. - derive_
xpubs_ from_ seed - Derives account extended public keys of a
seed
with an index range[start, end)
and the derivation path ofversion
. Returns a tuple of the derivation path and its derived xpub. - extend_
seed - Extends a
seed
’s number of words to the desired lengthword_count
by enxtending its entropy. The returned new seed will start with the same words asseed
. - truncate_
seed - Truncates a
seed
’s number of words toword_count
by truncating its entropy. - xor_
seeds - XORs multiple seeds and returns the resulting seed or
None
ifseeds
is empty. Can fail if a seed is not a valid bip39::Mnemonic.