logical.sha256functionno test imports itfunction sha256(bytes: Uint8Array<ArrayBufferLike>): Uint8Array<ArrayBufferLike>The SHA-256 digest of bytes.
SHA-256 of text, in pure TypeScript (FIPS 180-4), so that the hash of a plan is the same on every runtime and the logical layer needs no host module for it. It is for naming a plan (planHash): a digest that a signer can sign and a verifier recompute; it keeps no key and signs nothing.
import { sha256Hex } from "./sha256.ts";
sha256Hex("abc"); // "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"logical.sha256functionno test imports itfunction sha256(bytes: Uint8Array<ArrayBufferLike>): Uint8Array<ArrayBufferLike>The SHA-256 digest of bytes.
logical.sha256Hexfunctionno test imports itfunction sha256Hex(text: string): stringThe SHA-256 digest of text (as UTF-8), in lower-case hexadecimal.
sha256functionno test imports itfunction sha256(bytes: Uint8Array<ArrayBufferLike>): Uint8Array<ArrayBufferLike>The SHA-256 digest of bytes.
sha256Hexfunctionfunction sha256Hex(text: string): stringThe SHA-256 digest of text (as UTF-8), in lower-case hexadecimal.