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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
privateKey | `0x${string}` |
input | Uint8Array<ArrayBufferLike> | Grant |
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Throws
Section titled “Throws”If the grant was not addressed to this key, its descriptor was altered, or it is not a grant this version understands.