Skip to content

verifyChain

verifyChain(chain, options?): Promise<VerifiedClaim>

Defined in: claims.ts:334

Check a chain with nothing but the chain: the root signed by the owner and unexpired, every later link signed by the previous bearer and no wider than it. Pass piece when a link names a piece.

ParameterType
chainClaimChain
options{ now?: number; piece?: PieceLabels; }
options.now?number
options.piece?PieceLabels

Promise<VerifiedClaim>

With the reason the chain is refused.