Abstract Class: ProofVerifier

Abstract class for a proof verifier.

Constructors

Constructor

new ProofVerifier(): ProofVerifier

Returns

ProofVerifier

Methods

canVerify()

abstract canVerify(proof): boolean

Checks if the proof verifier can verify the given proof.

Parameters

======= proof

The proof to check.

Returns

boolean

True if the proof verifier can verify the given proof, false otherwise.


extractVerificationData()

abstract extractVerificationData(securedDocument, options?): VerificationData | Promise<link:../interfaces/VerificationData.md>

Extracts the verification data from the secured document. Function extracts the verification data from the secured document and returns the verification input and the proof value.

Parameters

======= securedDocument

The secured document to extract the verification data from.

======= options?

Returns

VerificationData | Promise<link:../interfaces/VerificationData.md>

The verification input and the proof value.