bs58
1.0.2, released 5 years ago by an unverified publisher
A Dart Base58 encoder and decoder library.
WASM-readyUnverified publisher
What it does
Provides encoding and decoding functions for Base58, commonly used in cryptocurrencies like Bitcoin. It allows converting between raw byte arrays and Base58 string representations.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to encode or decode Bitcoin-style addresses or hashes.
- Working with cryptocurrency protocols that require Base58 formatting.
Skip it when
- You are working with standard web data encodings where Base64 or UTF-8 is expected.
Strengths
- Simple and straightforward API for Base58 operations.
- Supports null safety.
Weaknesses
- Very narrow and specialized scope.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'dart:typed_data';
import 'package:bs58/bs58.dart';
void main() {
var encoded = base58.encode(Uint8List.fromList([1, 2, 3]));
var decoded = base58.decode(encoded);
}Alternatives
Packages that do the same job and could replace bs58.
- blockchain_utils
Provides a comprehensive suite of cryptographic and blockchain utilities including Base58.
72Compare
Works with
Packages commonly used together with bs58: ones it builds on, ones built on it, and its own family.