bip39 1.0.6 copy "bip39: ^1.0.6" to clipboard
bip39: ^1.0.6 copied to clipboard

Dart implementation of Bitcoin BIP39 Mnemonic code for generating deterministic keys

example/bip39_example.dart

import 'package:bip39/bip39.dart' as bip39;

main() async {
  String randomMnemonic = bip39.generateMnemonic();
  print(randomMnemonic);
  String seed = bip39.mnemonicToSeedHex("update elbow source spin squeeze horror world become oak assist bomb nuclear");
  print(seed);
  String mnemonic = bip39.entropyToMnemonic('00000000000000000000000000000000');
  print(mnemonic);
  bool isValid = bip39.validateMnemonic(mnemonic);
  print(isValid);
  isValid = bip39.validateMnemonic('basket actual');
  print(isValid);
  String entropy = bip39.mnemonicToEntropy(mnemonic);
  print(entropy);
}
48
likes
140
pub points
95%
popularity

Publisher

unverified uploader

Dart implementation of Bitcoin BIP39 Mnemonic code for generating deterministic keys

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

crypto, hex, pointycastle

More

Packages that depend on bip39