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

outdated

Libary fast_base58 provides fast implementation of base58 encoding, and supports both flickr alphabet (123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ) and Bitcoin addresses/IPFS hashes 's [...]

example/example.dart

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));
}
7
likes
0
pub points
87%
popularity

Publisher

verified publisherc0mm4nd.com

Libary fast_base58 provides fast implementation of base58 encoding, and supports both flickr alphabet (123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ) and Bitcoin addresses/IPFS hashes 's alphabet (123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz). Base58 is a group of binary-to-text encoding schemes used to represent large integers as alphanumeric text, introduced by Satoshi Nakamoto for use with Bitcoin. It has since been applied to other cryptocurrencies and applications. It is similar to Base64 but has been modified to avoid both non-alphanumeric characters and letters which might look ambiguous when printed. It is therefore designed for human users who manually enter the data, copying from some visual source, but also allows easy copy and paste because a double-click will usually select the whole string.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on fast_base58