fast_base58 0.2.1 copy "fast_base58: ^0.2.1" to clipboard
fast_base58: ^0.2.1 copied to clipboard

fast_base58 provides fast implementation of base58 encoding, and supports flickr alphabet and Bitcoin/IPFS alphabet(default).

example/example.dart

import 'dart:convert';

import 'package:fast_base58/fast_base58.dart';

void main() {
  // Uint8List(raw bytes) to base58 string
  var encodedStr = Base58Encode(utf8.encode('bitcoin'));
  // 4jJc4sAwPs
  print(encodedStr);

  // base58 string to Uint8List(raw bytes)
  var decodedRaw = Base58Decode('4jJc4sAwPs');
  // bitcoin
  print(utf8.decode(decodedRaw));
}
7
likes
135
points
2.98k
downloads

Publisher

verified publisherc0mm4nd.com

Weekly Downloads

fast_base58 provides fast implementation of base58 encoding, and supports flickr alphabet and Bitcoin/IPFS alphabet(default).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on fast_base58