Skip to content

unwrapWith

unwrapWith(privateKey, input): Promise<Uint8Array<ArrayBufferLike>>

Defined in: wrap.ts:116

Open a grant with the recipient’s private key: the grant as delivered, in bytes, or as decoded by decodeGrant.

ParameterType
privateKey`0x${string}`
inputUint8Array<ArrayBufferLike> | Grant

Promise<Uint8Array<ArrayBufferLike>>

If the grant was not addressed to this key, its descriptor was altered, or it is not a grant this version understands.