Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/islishude/bs58js

Package bs58js creates base58 encoder/decoder functions by BigInt.
https://github.com/islishude/bs58js

base58 bitcoin

Last synced: 2 days ago
JSON representation

Package bs58js creates base58 encoder/decoder functions by BigInt.

Awesome Lists containing this project

README

        

## getbs58 [![Build Status](https://travis-ci.org/islishude/bs58js.svg?branch=master)](https://travis-ci.org/islishude/bs58js)

Package getbs58 creates base58 encoder/decoder functions by BigInt.

## Usage

```typescript
import bs58 from "getbs58";

const raw = "00eb15231dfceb60925886b67d065299925915aeb172c06647";
const result = bs58.encode(raw);
console.log(result);
// => 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L
console.log(bs58.decode(result) === raw);
// => true
```