Skip to content

computeKeychainStateCommitment

computeKeychainStateCommitment(entries): Promise<Uint8Array<ArrayBufferLike>>

Defined in: packages/core/src/keychain.ts:19

Hash a canonical ordered keychain sequence independently of its CRDT operation identities. The committed encoding is the ASCII domain above, followed by a big-endian u32 entry count and, for each entry, big-endian u32 lengths plus the 32-byte key ID and 32 raw AES-key bytes.

readonly readonly [Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>][]

Promise<Uint8Array<ArrayBufferLike>>