Mnemonic class

A utility class for generating and validating mnemonics, and deriving private keys from them.

Constructors

Mnemonic()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

generate({int strength = 128}) String
Generates a new BIP-39 mnemonic with a given strength (default 128 bits).
generatePrivateKey() Future<String>
Generates a new private key by first generating a new BIP-39 mnemonic and then deriving the private key from it.
isValid(String mnemonic) bool
Validates a BIP-39 mnemonic.
privateKeyFromMnemonic(String mnemonic, {String derivationPath = "m/44'/60'/0'/0/", int childIndex = 0, String passphrase = ""}) String
Derives a private key from a BIP-39 mnemonic using a given derivation path and passphrase.