Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/libauth/src/lib/format/hex.ts

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Go to Latest
import * as libauth from "https://deno.land/x/libauth@v2.0.0-alpha.6/src/lib/format/hex.ts";

Variables

Compare to Uint8Arrays, return true if their contents are exactly the same, otherwise return false.

Encode a Uint8Array into a hexadecimal-encoded string.

Reduce an array of Uint8Arrays into a single Uint8Array.

Decode a hexadecimal-encoded string into a Uint8Array.

For use before hexToBin. Returns true if the provided string is valid hexadecimal (length is divisible by 2, only uses hexadecimal characters).

Returns an array of incrementing values starting at begin and incrementing by one for length.

Split a string into an array of chunkLength strings. The final string may have a length between 1 and chunkLength.

Decode a hexadecimal-encoded string into bytes, reverse it, then re-encode.