-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Feature 💡📡 cosmos_node_clientissues related to cosmos_node_client packageissues related to cosmos_node_client package
Description
Add feature of wallet derivation to the cosmos_node_client library
Acceptance criteria
- introduce new type
Mnemonicthat has the constructorMnemonic.generate(MnemonicLength length)
enum MnemonicLength {
words12,
words24,
}
class Mnemonic {
final String value;
List<String> get words {} // generate list of words based on the `value`
const Mnemonic._(this.value);
factory Mnemonic.generate(MnemonicLength length) { ... }
- introduce new type
Accountwith a factoryderiveFromMnemonicthat acceptsMnemonic mnemonic.
class Account extends Equatable {
static const defaultDerivationPath = "m/44'/118'/0'/0/0";
final String bech32Address;
final Uint8List publicKey;
final Uint8List privateKey;
factory Account.derive({
required Mnemonic mnemonic,
String derivationPath = defaultDerivationPath,
}) { ... }
}Metadata
Metadata
Assignees
Labels
Feature 💡📡 cosmos_node_clientissues related to cosmos_node_client packageissues related to cosmos_node_client package