dart_bs58check 3.0.2 copy "dart_bs58check: ^3.0.2" to clipboard
dart_bs58check: ^3.0.2 copied to clipboard

A straight forward implementation of base58check extending upon base58.

dart_bs58check #

A straight forward implementation of base58check extending upon base58.

Install #

    dart pub add dart_bs58check

Example #

import 'dart:typed_data';

import 'package:dart_bs58check/dart_bs58check.dart' as bs58check;

/// encode and decode test
void main() {
  Uint8List decoded =
  bs58check.decode('5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr');

  print(decoded);
  // => [128, 237, 219, 220, 17, 104, 241, 218, 234, 219, 211, 228, 76, 30, 63, 143, 90, 40, 76, 32, 41, 247, 138, 210, 106, 249, 133, 131, 164, 153, 222, 91, 25]

  print(bs58check.encode(decoded));
  // => 5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr
}

LICENSE MIT #

0
likes
160
points
466
downloads

Publisher

verified publishermahsumurebe.com

Weekly Downloads

A straight forward implementation of base58check extending upon base58.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

convert, dart_bs58, pointycastle

More

Packages that depend on dart_bs58check