Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Base58.encodeCheck

import { Base58 } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/helpers/mod.ts"; 

const { encodeCheck } = Base58;

Encodes a byte array payload as a Base58 string with a checksum.

See the Bitcoin source code for the original C++ implementation.

Base58.encodeCheck(new Uint8Array([55, 66, 77]));
// "36TSqepyLV"

Optionally, a prefix can be specified, which will be concatenated with the payload before encoding.

Base58.encodeCheck(
  new Uint8Array([55, 66, 77]),
  new Uint8Array([22, 33, 44]), // prefix
);
// "2F7PrbRwKSeYvf"
function encodeCheck(payload: Uint8Array, prefix?): string;
§
encodeCheck(payload: Uint8Array, prefix?): string
[src]

§Parameters

§
payload: Uint8Array
[src]

Byte array to encode

§
prefix? optional
[src]

§Return Type

§
string
[src]