Skip to content

createEnvelope

createEnvelope(data, header?): Promise<SaveEnvelope>

Defined in: src/modules/save/save-storage.ts:22

Wrap a payload string with its checksum (and an optional header) into a SaveEnvelope, so a later verifyEnvelope can detect corruption or tampering.

string

unknown

Promise<SaveEnvelope>