1.0.5 • Published 7 months ago

@hazae41/base58 v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Base58

Base58 adapter for WebAssembly and JS implementations

npm i @hazae41/base58

Node Package 📦

Features

Current features

  • 100% TypeScript and ESM
  • No external dependencies

Getting started

Alocer (WebAssembly)

npm i @hazae41/alocer
import { Base58 } from "@hazae41/base58"

Base58.set(await Base58.fromAlocer())

Scure (JavaScript)

npm i @scure/base
import { Base58 } from "@hazae41/base58"

Base58.set(Base58.fromScure())

Usage

Direct

const encoded: string = Base58.get().tryEncode(new Uint8Array([1,2,3,4,5])).unwrap()
const decoded: Uint8Array = Base58.get().tryDecode(encoded).unwrap().copyAndDispose()