bitcoin_flutter 0.0.5 copy "bitcoin_flutter: ^0.0.5" to clipboard
bitcoin_flutter: ^0.0.5 copied to clipboard

outdated

A dart Bitcoin library for Flutter. BIP32, BIP39, P2PKH integration.

pub version

bitcoin_flutter #

A dart Bitcoin library for Flutter.

Released under the terms of the MIT LICENSE.

Inspired by bitcoinjs

Otherwise, pull requests are appreciated.

Installing #

Flutter Packages

Examples #

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

main() {
  var seed = bip39.mnemonicToSeed("praise you muffin lion enable neck grocery crumble super myself license ghost");
  var hdWallet = new HDWallet(seed);
  print(hdWallet.address);
  // => 12eUJoaWBENQ3tNZE52ZQaHqr3v4tTX4os
  print(hdWallet.pubKey);
  // => 0360729fb3c4733e43bf91e5208b0d240f8d8de239cff3f2ebd616b94faa0007f4
  print(hdWallet.privKey);
  // => 01304181d699cd89db7de6337d597adf5f78dc1f0784c400e41a3bd829a5a226
  print(hdWallet.wif);
  // => KwG2BU1ERd3ndbFUrdpR7ymLZbsd7xZpPKxsgJzUf76A4q9CkBpY
}

The below examples are implemented as integration tests:

Running the test suite #

flutter test

Complementing Libraries #

  • BIP39 - Mnemonic generation for deterministic keys
  • BIP32 - BIP32
  • Base58 Check - Base58 check encoding/decoding

LICENSE MIT #

33
likes
0
pub points
69%
popularity

Publisher

unverified uploader

A dart Bitcoin library for Flutter. BIP32, BIP39, P2PKH integration.

Homepage

License

unknown (LICENSE)

Dependencies

bip32, bip39, bs58check, hex, meta, pointycastle

More

Packages that depend on bitcoin_flutter