Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

KeyHash

Uppercase hex SHA-256 of a public key or credential id. Used to identify keys on chain.

Definition

type KeyHash = Hex

Construction

import { createKeyHash } from "@left-curve/sdk"
 
const hash = createKeyHash(publicKeyBytes) // "ABCDEF0123456789..."

The helper sha256-hashes the input and upper-cases the hex output.

See also