@pwngh/economy-lab
    Preparing search index...

    Interface Digest

    Content hashing for chain links, checkpoints, and session movements. The algorithm is part of the contract: provers recompute stored hashes from stored content, so anything other than SHA-256 makes every previously stored hash fail verification.

    interface Digest {
        hash(bytes: Uint8Array): Promise<Uint8Array<ArrayBufferLike>>;
    }
    Index
    • The SHA-256 hash of the input.

      Parameters

      • bytes: Uint8Array

      Returns Promise<Uint8Array<ArrayBufferLike>>