Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / createEnvelopeEncryption

Function: createEnvelopeEncryption()

ts
function createEnvelopeEncryption(options): Promise<EnvelopeEncryption>;

Defined in: packages/core/src/l0/encryption.ts:289

Builds the envelope-encryption SerializationHook. All DataKeyProvider calls happen HERE (the hook itself is synchronous, on in-memory data keys): a fresh data key is minted and wrapped for this instance, and every historical wrapped key is unwrapped for the read path.

Parameters

ParameterType
optionsEnvelopeEncryptionOptions

Returns

Promise&lt;EnvelopeEncryption&gt;