openDelivery
openDelivery(
privateKey,bytes,options?):Promise<{chain:ClaimChain;claim:VerifiedClaim;grant:Grant;key:Uint8Array; }>
Defined in: claims.ts:423
Open a delivery as its final bearer: verify the chain, unwrap the key, and check it against the commitment in its claim, which the owner (or the delegate above) signed. The keyspace commitment comes back too, for a bearer that writes the keyspace’s first datasets.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
privateKey | `0x${string}` |
bytes | Uint8Array |
options | { now?: number; piece?: PieceLabels; } |
options.now? | number |
options.piece? | PieceLabels |
Returns
Section titled “Returns”Promise<{ chain: ClaimChain; claim: VerifiedClaim; grant: Grant; key: Uint8Array; }>
Throws
Section titled “Throws”With the reason the delivery is refused.