Skip to main content

Crate qp_rusty_crystals_hdwallet

Crate qp_rusty_crystals_hdwallet 

Source
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§

hderive
wormhole
Wormhole Utilities

Structs§

SensitiveBytes32
Wrapper for sensitive 32-byte data that enforces move semantics and automatic zeroization
SensitiveBytes64
Wrapper for sensitive 64-byte data that enforces move semantics and automatic zeroization

Enums§

HDLatticeError

Constants§

MAX_DERIVATION_DEPTH
Maximum number of /-separated segments allowed in a derivation path (counts the leading m/ 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