bip_bech32 0.1.1 copy "bip_bech32: ^0.1.1" to clipboard
bip_bech32: ^0.1.1 copied to clipboard

outdated

bip_bech32 implementing BIP173

bip_bech32 #

pub package

Dart implementing BIP173 spec

Convert from bitcoinj

Install #

dart pub package

bip_bech32

Example #

Bech32Codec bech32codec = Bech32Codec();
  Bech32 bech32 =
      bech32codec.decode("bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4");
  print(bech32.data);
  print(bech32.hrp);

  Uint8List data = Uint8List.fromList([0, 14, 20, 15, 7, 13, 26, 0, 25, 18, 6, 11, 13, 8, 21, 4, 20, 3, 17, 2, 29, 3, 12, 29, 3, 4, 15, 24, 20, 6, 14, 30, 22]);
  print(bech32codec.encode(Bech32("bc", data)));

example

License #

MIT

Thanks #

bitcoinj

1
likes
0
pub points
1%
popularity

Publisher

unverified uploader

bip_bech32 implementing BIP173

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on bip_bech32