https://github.com/litaoh/base58
A Dart Base58 Cipher - Encoder/Decoder library for Dart developers. This encoding is typically used for crypto currencies such as Bitcoin.
https://github.com/litaoh/base58
base58
Last synced: 4 months ago
JSON representation
A Dart Base58 Cipher - Encoder/Decoder library for Dart developers. This encoding is typically used for crypto currencies such as Bitcoin.
- Host: GitHub
- URL: https://github.com/litaoh/base58
- Owner: litaoh
- License: mit
- Created: 2020-03-15T07:15:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-17T01:16:52.000Z (over 4 years ago)
- Last Synced: 2025-10-23T08:23:00.664Z (8 months ago)
- Topics: base58
- Language: Dart
- Homepage: https://pub.dev/packages/bs58
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# base58
A Dart Base58 Cipher - Encoder/Decoder library for Dart developers. This encoding is typically used for crypto currencies such as Bitcoin.
## Install
```yaml
dependencies:
bs58: ^1.0.2
```
## Usage
```dart
import 'dart:typed_data';
import 'package:bs58/bs58.dart';
import 'package:hex/hex.dart';
void main() {
Uint8List hash =
HEX.decode('0efb18dccaeb61e855e56dbc35922b24f6ee6e37caa3a07ba923')
as Uint8List;
print(base58.encode(hash));
// => TcASfmyoFiNobNaCHeiPMkWgGmovoxk1sqk
print(base58.decode('TcASfmyoFiNobNaCHeiPMkWgGmovoxk1sqk'));
// => [14, 251, 24, 220, 202, 235, 97, 232, 85, 229, 109, 188, 53, 146, 43, 36, 246, 238, 110, 55, 202, 163, 160, 123, 169, 35]
}
```
## LICENSE [MIT](LICENSE)