Skip to main content

verifyProofGraph

@totemsdk/proofgraph


@totemsdk/proofgraph / verifyProofGraph

Function: verifyProofGraph()

verifyProofGraph(graph, _options?): ProofGraphVerifyResult

Verify every proof node stored in the graph.

Iterates nodes of type 'proof', casts node.data back to SignedProof, and calls proofModule.verifyProof() from @totemsdk/proof. Returns { valid: true } if ALL proofs pass; otherwise lists the failing proofIds.

Parameters​

graph​

ProofGraph

_options?​

Record<string, unknown>

Returns​

ProofGraphVerifyResult