bip39_multi_language 0.0.1 copy "bip39_multi_language: ^0.0.1" to clipboard
bip39_multi_language: ^0.0.1 copied to clipboard

Dart package for generating mnemonic code in 10 different languages.

BIP39_MULTI_LANGUAGE #

Multiple language support #

English French Italian Korean Portuguese Spanish chinese(simplified) chinese(traditional) czech

Examples #

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

main() async {
  //  support 10 languages with BIP39 word list
  
  String mnemonic = bip39.generateMnemonic(language: bip39.Language.english);
  //  rain number industry connect town stay such ribbon return cabbage bus spy
  
  var seed = bip39.mnemonicToSeedHex(mnemonic);
  //  229f35cde89038d4eaf78963e23f0dd57eeb3d1e970839341fc8a259f9e2499d152de1cb96d42c28f1eb2b953837111e6aedc819c759e1e599cf5534e0a4a659
  
  mnemonic = bip39.entropyToMnemonic('00000000000000000000000000000000');
  //  abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about
  
  bool isValid = bip39.validateMnemonic(mnemonic);
  //  true
  isValid = bip39.validateMnemonic('basket actual');
  //  false
  String entropy = bip39.mnemonicToEntropy(mnemonic);
  //  00000000000000000000000000000000
}

Dart implementation of Bitcoin BIP39: Mnemonic code for generating deterministic keys

Convert from bitcoinjs/bip39

2
likes
0
pub points
17%
popularity

Publisher

unverified uploader

Dart package for generating mnemonic code in 10 different languages.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, flutter, hex, pointycastle

More

Packages that depend on bip39_multi_language