Skip to main content

Module wallet

Module wallet 

Source

Re-exportsยง

use alloy_primitives::U256; ๐Ÿ”’
use alloy_signer_local::MnemonicBuilder; ๐Ÿ”’
use alloy_signer_local::PrivateKeySigner; ๐Ÿ”’
use alloy_signer_local::coins_bip39::ChineseSimplified; ๐Ÿ”’
use alloy_signer_local::coins_bip39::ChineseTraditional; ๐Ÿ”’
use alloy_signer_local::coins_bip39::Czech; ๐Ÿ”’
use alloy_signer_local::coins_bip39::English; ๐Ÿ”’
use alloy_signer_local::coins_bip39::French; ๐Ÿ”’
use alloy_signer_local::coins_bip39::Italian; ๐Ÿ”’
use alloy_signer_local::coins_bip39::Japanese; ๐Ÿ”’
use alloy_signer_local::coins_bip39::Korean; ๐Ÿ”’
use alloy_signer_local::coins_bip39::Portuguese; ๐Ÿ”’
use alloy_signer_local::coins_bip39::Spanish; ๐Ÿ”’
use alloy_signer_local::coins_bip39::Wordlist; ๐Ÿ”’

Constantsยง

BIP32_HARDEN
BIP-32 harden bit (0x8000_0000). Indices at or above this already encode hardened.

Functionsยง

derive_key_path
Appends index to path, inserting a / separator when needed.
derive_key_path_checked
derive_key_path plus the harden-bit overflow guard for mnemonic derive consumers.
derive_private_key
Derives a private key from a BIP-39 mnemonic using the given BIP-32 path and index.
derive_private_key_with_language
Derives a private key from a BIP-39 mnemonic, selecting the wordlist by name.
private_key_from_u256
Constructs a [PrivateKeySigner] from a raw private key value.
validate_bip32_path
Reject BIP-32 path components whose parsed index overflows the harden bit.