Skip to content

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.

ParameterType
privateKey`0x${string}`
bytesUint8Array
options{ now?: number; piece?: PieceLabels; }
options.now?number
options.piece?PieceLabels

Promise<{ chain: ClaimChain; claim: VerifiedClaim; grant: Grant; key: Uint8Array; }>

With the reason the delivery is refused.