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.
Parameters
Section titled “Parameters”checkpoint
Section titled “checkpoint”Uint8Array<ArrayBufferLike> | DocumentCheckpoint
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>