Expand description
Bitcoin SLIP-132 standard implementation for parsing custom xpub/xpriv key formats
Structs§
- Default
Resolver - Default resolver knowing native
bitcoin::network::constants::Networkand BIP 32 and SLIP 132-defined key applications withKeyApplication - KeyVersion
- Structure holding 4 version bytes with magical numbers representing
different versions of extended public and private keys according to BIP-32.
Key version stores raw bytes without their check, interpretation or
verification; for these purposes special helpers structures implementing
VersionResolverare used. - Unknown
KeyApplication Error - Unknown string representation of
KeyApplicationenum
Enums§
- Error
- Extended public and private key processing errors
- KeyApplication
- SLIP 132-defined key applications defining types of scriptPubkey descriptors in which they can be used
Constants§
- VERSION_
MAGIC_ TPRV - Magical version bytes for tprv: bitcoin testnet/regtest private key for P2PKH or P2SH
- VERSION_
MAGIC_ TPUB - Magical version bytes for tpub: bitcoin testnet/regtest public key for P2PKH or P2SH
- VERSION_
MAGIC_ UPRV - Magical version bytes for uprv: bitcoin testnet/regtest private key for P2WPKH in P2SH
- VERSION_
MAGIC_ UPRV_ MULTISIG - Magical version bytes for Uprv: bitcoin testnet/regtest private key for multi-signature P2WSH in P2SH
- VERSION_
MAGIC_ UPUB - Magical version bytes for upub: bitcoin testnet/regtest public key for P2WPKH in P2SH
- VERSION_
MAGIC_ UPUB_ MULTISIG - Magical version bytes for Upub: bitcoin testnet/regtest public key for multi-signature P2WSH in P2SH
- VERSION_
MAGIC_ VPRV - Magical version bytes for vprv: bitcoin testnet/regtest private key for P2WPKH
- VERSION_
MAGIC_ VPRV_ MULTISIG - Magical version bytes for Zprv: bitcoin testnet/regtest private key for multi-signature P2WSH
- VERSION_
MAGIC_ VPUB - Magical version bytes for vpub: bitcoin testnet/regtest public key for P2WPKH
- VERSION_
MAGIC_ VPUB_ MULTISIG - Magical version bytes for Zpub: bitcoin testnet/regtest public key for multi-signature P2WSH
- VERSION_
MAGIC_ XPRV - Magical version bytes for xprv: bitcoin mainnet private key for P2PKH or P2SH
- VERSION_
MAGIC_ XPUB - Magical version bytes for xpub: bitcoin mainnet public key for P2PKH or P2SH
- VERSION_
MAGIC_ YPRV - Magical version bytes for yprv: bitcoin mainnet private key for P2WPKH in P2SH
- VERSION_
MAGIC_ YPRV_ MULTISIG - Magical version bytes for Yprv: bitcoin mainnet private key for multi-signature P2WSH in P2SH
- VERSION_
MAGIC_ YPUB - Magical version bytes for ypub: bitcoin mainnet public key for P2WPKH in P2SH
- VERSION_
MAGIC_ YPUB_ MULTISIG - Magical version bytes for Ypub: bitcoin mainnet public key for multi-signature P2WSH in P2SH
- VERSION_
MAGIC_ ZPRV - Magical version bytes for zprv: bitcoin mainnet private key for P2WPKH
- VERSION_
MAGIC_ ZPRV_ MULTISIG - Magical version bytes for Zprv: bitcoin mainnet private key for multi-signature P2WSH
- VERSION_
MAGIC_ ZPUB - Magical version bytes for zpub: bitcoin mainnet public key for P2WPKH
- VERSION_
MAGIC_ ZPUB_ MULTISIG - Magical version bytes for Zpub: bitcoin mainnet public key for multi-signature P2WSH
Traits§
- From
Slip132 - Trait for building standard BIP32 extended keys from SLIP132 variant.
- ToSlip132
- Trait converting standard BIP32 extended keys into SLIP132 representation.
- Version
Resolver - Trait which must be implemented by helpers which do construction,
interpretation, verification and cross-conversion of extended public and
private key version magic bytes from
KeyVersion