Draft Inverse Bloom Filter
This commit is contained in:
@@ -12,6 +12,22 @@ export type MnemonicRaw = {
|
||||
/**
|
||||
* Class representing a BIP39 Mnemonic phrase.
|
||||
* Supports 12, 15, 18, 21, and 24 word phrases with optional passphrase.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* ```ts
|
||||
* // Import our primitives.
|
||||
* import { Mnemonic } from '@xocash/primitives';
|
||||
*
|
||||
* // Generate a random mnemonic.
|
||||
* const mnemonic = Mnemonic.generateRandom();
|
||||
*
|
||||
* // Output the mnemonic phrase.
|
||||
* console.log(mnemonic.toPhrase());
|
||||
*
|
||||
* // Derive the seed from the mnemonic.
|
||||
* console.log(mnemonic.toSeed());
|
||||
* ```
|
||||
*/
|
||||
export class Mnemonic {
|
||||
protected static VALID_WORD_COUNTS = new Set([12, 15, 18, 21, 24]);
|
||||
|
||||
Reference in New Issue
Block a user