Skip to main content
Module

x/json_hash/hex.ts>fromHex

JCS (JSON Canonicalization Scheme), JSON digests, and JSON Merkle hashes
Latest
function fromHex
import { fromHex } from "https://deno.land/x/json_hash@0.2.0/hex.ts";

Turns a hexadecimal string into a Uint8Array.

Parameters

hex: string

The hexadecimal string to convert. It is case-insensitive.

Returns

Uint8Array

The bytes.