Function: verifySerializedProof() ​
verifySerializedProof(
serialized,index,candidateHash):boolean
Defined in: btcr2-proof.ts:81
Verify a did:btcr2 serialized proof in one step.
Parameters ​
serialized ​
The serialized proof to verify.
index ​
bigint
Leaf index (didToIndex(did)).
candidateHash ​
Uint8Array
Expected leaf hash (inclusionLeafHash or nonInclusionLeafHash).
Returns ​
boolean
true if the proof is valid.