Skip to main content

getEvidenceTrail

@totemsdk/proofgraph


@totemsdk/proofgraph / getEvidenceTrail

Function: getEvidenceTrail()

getEvidenceTrail(graph, proofId): ProofGraphNode[]

Traverse 'references' edges from a proof to its evidence nodes. Returns nodes in insertion order (the order edges were added, which matches the original evidence array order from addProof).

Parameters​

graph​

ProofGraph

proofId​

string

Returns​

ProofGraphNode[]