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

Usage

import * as tzstamp from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/helpers/mod.ts";

§Namespaces

Base58
Hex

§Classes

Base58.ChecksumError

Mismatched checksum error

Base58.PrefixError

Mismatched prefix error

Blake2b

[BLAKE2b] streaming hash function.

Sha256

[SHA-256] streaming hash function.

§Variables

Base58.validator

Base58 string validation regular expression. Tests a string against the common Base58 alphabet as defined in the the [Base58 Encoding Scheme].

Hex.validator

Hexadecimal string validation regular expression. Matches strings comprised of only the 16 hexadecimal symbols, case-insensitively.

§Functions

Base58.decode

Decodes a Base58 string to a byte array payload as described in the [Base58 Encoding Scheme].

Base58.decodeCheck

Decodes and validates a Base58 string with a checksum to a byte array.

Base58.encode

Encodes a byte array payload as a Base58 string as described in the [Base58 Encoding Scheme].

Base58.encodeCheck

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

compare

Compares two byte arrays.

concat

Concatenates numbers or byte arrays into a single byte array. Numbers out of the range [0, 256) will wrap.

Hex.parse

Parses a hexadecimal string to a byte array. Throws SyntaxError if the hexadecimal string is invalid.

Hex.stringify

Creates a hexadecimal string from a byte array.