Expand description
§Quantus Network HD Wallet
This crate provides hierarchical deterministic (HD) wallet functionality for post-quantum ML-DSA (Dilithium) keys, compatible
Re-exports§
pub use wormhole::WormholePair;
Modules§
Structs§
- Sensitive
Bytes32 - Wrapper for sensitive 32-byte data that enforces move semantics and automatic zeroization
- Sensitive
Bytes64 - Wrapper for sensitive 64-byte data that enforces move semantics and automatic zeroization
Enums§
Constants§
- MAX_
DERIVATION_ DEPTH - Maximum number of
/-separated segments allowed in a derivation path (counts the leadingm/separator too, so legitimate BIP44 paths sit well below). Bounded to prevent DoS via attacker-controlled deep paths. - MAX_
DERIVATION_ PATH_ BYTES - Maximum raw byte length of an accepted derivation path string.
Sized for 16 segments of up to ~14 chars plus the
m/prefix. - PURPOSE
- QUANTUS_
DILITHIUM_ CHAIN_ ID - QUANTUS_
WORMHOLE_ CHAIN_ ID - ROOT_
PATH
Functions§
- derive_
key_ from_ mnemonic - Keypair derivation from mnemonic with passphrase.
- derive_
key_ from_ seed - Derive a Dilithium keypair from a seed at the given BIP44 path
- derive_
wormhole_ from_ mnemonic - Wormhole pair derivation from mnemonic with passphrase.
- generate_
mnemonic - Generate a new random mnemonic with 24 words = 32 bytes
- generate_
wormhole_ from_ seed - Generate a wormhole pair from a seed at the given path
- mnemonic_
to_ seed - Convert a BIP39 mnemonic phrase to a seed