nooschain / crypto/key-envelopes / createKeyEnvelope
Function: createKeyEnvelope()
createKeyEnvelope(
args):Promise<KeyEnvelope>
Defined in: crypto/key-envelopes.ts:90
Seals a DEK for a user or organization recipient public key.
Parameters
args
dek
Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>
recipientId
string
recipientPublicKey
string
recipientType
"user" | "organization"
Returns
Promise<KeyEnvelope>