nooschain / crypto/hashing / canonicalPayloadHash
Function: canonicalPayloadHash()
canonicalPayloadHash(
payload):string
Defined in: crypto/hashing.ts:33
Hashes plaintext payload bytes, not ciphertext or encryption metadata. This gives consensus a deterministic integrity anchor even when encryption is randomized with a fresh DEK and IV for every record.
Parameters
payload
string | Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>
Returns
string