Wallet seed
A robust implementation of BIP39 seed generation and management. This is lib is a wrapper around bip32 and bip39
💼 Wallet SDK
This library is part of the Wallet SDK.
🔧 Usage
Here's a quick example of how to use Bip39Seed:
📘 API
Bip39Seed
Bip39Seed
Constructor
new Bip39Seed(config)
config.seed
: (optional) The seed bufferconfig.mnemonic
: (required) The mnemonic phrase
Static Methods
Bip39Seed.generate(mnemonic)
Generates a new Bip39Seed instance
mnemonic
: (optional) A specific mnemonic phrase to use
Instance Methods
exportSeed(opts)
Exports the seed and mnemonic
opts.string
: (optional) If false, returns an object instead of a JSON string
🧪 Testing
We use the Brittle testing framework for our unit tests. To run the tests for this package, use the following command:
Last updated