1.0.7 • Published 4 months ago

@hazae41/base58 v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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

WebAssembly

npm i @hazae41/base58.wasm
import { Base58 } from "@hazae41/base58"
import { Base58Wasm } from "@hazae41/base58.wasm"

await Base58Wasm.initBundled()

Base58.set(Base58.fromWasm(Base58Wasm))

Scure (JavaScript)

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

Base58.set(Base58.fromScure(Scure))

Usage

const encoded: string = Base58.get().getOrThrow().encodeOrThrow(new Uint8Array([1,2,3,4,5]))
using decoded: Copiable = Base58.get().getOrThrow().decodeOrThrow(encoded)
const decoded2: Uint8Array = decoded.bytes.slice()
1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago