inspectDelivery
inspectDelivery(
bearer,bytes,options?):Promise<InspectedDelivery>
Defined in: packages/keysmith/src/claims.ts:905
Inspect a delivery for bearer before the piece’s envelope labels are
available: decode strictly, verify every signature, maxDepth, every
narrowing step decidable without labels, the final bearer, and that the
wrapped grant names the final claim, without unwrapping any key or returning
a VerifiedClaim.
When a link narrows to a piece and needs the piece’s labels to verify, its
index is recorded in uncheckedLinks and checking continues across all
remaining links. The returned owner is a verified claim chain lookup hint
(for locating providers before download), not proof that the delivery
applies to a specific envelope: call openDelivery with the piece’s
labels to finish deferred chain and unauthenticated label checks, then pass
the returned key and grant to keyResolver for authenticated FEE
decryption.
As with openDelivery, an expired delivery still inspects and reports
expired: true.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
bearer |
`0x${string}` |
bytes |
Uint8Array |
options? |
InspectDeliveryOptions |
Returns
Section titled “Returns”Throws
Section titled “Throws”With the reason the delivery is refused.