fast_base58 0.1.1 fast_base58: ^0.1.1 copied to clipboard
Fast Implementation of Base58 encoding.
import 'dart:typed_data';
import 'package:fast_base58/fast_base58.dart';
void main() {
// Uint8List(raw bytes) to base58 string
var encodedStr = Base58Encode(Uint8List.fromList('bitcoin'.codeUnits));
// 4jJc4sAwPs
print(encodedStr);
// base58 string to Uint8List(raw bytes)
var decodedRaw = Base58Decode('4jJc4sAwPs');
// bitcoin
print(String.fromCharCodes(decodedRaw));
}