Skip to main content

verifyProofIdIntegrity

@totemsdk/proof


@totemsdk/proof / verifyProofIdIntegrity

Function: verifyProofIdIntegrity()

verifyProofIdIntegrity(signedProof): boolean

Verify that the proofId in a SignedProof matches a recomputation from its unsigned fields. This prevents callers from replacing the proofId after signing and relying on a stale identifier.

Parameters

signedProof

SignedProof

Returns

boolean