Skip to content

documentCheckpointCommitment

documentCheckpointCommitment(checkpoint): Promise<Uint8Array<ArrayBufferLike>>

Defined in: packages/core/src/document-checkpoint.ts:202

Compute the SHA-256 commitment of a locally exported checkpoint: of the bytes exportEncryptedCheckpoint() returned, or of the payload of a exportPlaintextCheckpoint() result. Pass it to the matching restore method. Store this digest independently of rollbackable checkpoint storage.

Uint8Array<ArrayBufferLike> | DocumentCheckpoint

Promise<Uint8Array<ArrayBufferLike>>