Skip to content

delegateClaim

delegateClaim(signer, chain, input): Promise<{ chain: ClaimChain; nodeKey: Uint8Array; }>

Defined in: claims.ts:235

Delegate: the chain’s final bearer signs a narrower link for bearer. Takes the key the bearer holds for its own link, checks it against that link’s commitment, and derives the child’s key from it, so an honest delegate cannot commit to a wrong key. Hands the child key back to wrap. A piece link needs the piece’s labels, to check the parent’s node reaches it.

ParameterType
signerClaimSigner
chainClaimChain
input{ bearer: `0x${string}`; maxDepth: number; node: string; parentKey: Uint8Array; piece?: PieceLabels; pieceCid?: Uint8Array<ArrayBufferLike>; }
input.bearer`0x${string}`
input.maxDepthnumber
input.nodestring
input.parentKeyUint8Array
input.piece?PieceLabels
input.pieceCid?Uint8Array<ArrayBufferLike>

Promise<{ chain: ClaimChain; nodeKey: Uint8Array; }>