Class: EdDSAProofVerifier

EdDSAProofVerifier is a class that implements the Data Integrity EdDSA Cryptosuite v1.0 for the Ed25519 algorithm. It is used to extract the verification data from a secured document.

Extends

  • ProofVerifier

Constructors

Constructor

new EdDSAProofVerifier(): EdDSAProofVerifier

Returns

EdDSAProofVerifier

Inherited from

ProofVerifier.constructor

Methods

canVerify()

canVerify(proof): boolean

Checks if the proof verifier can verify the given proof.

Parameters

======= proof

ProofConfig

The proof to check.

Returns

boolean

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

Overrides

ProofVerifier.canVerify


extractVerificationData()

extractVerificationData(securedDocument, options?): Promise<VerificationData>

Extracts the verification data from the secured document.

Parameters

======= securedDocument

SecuredDataDocument

The secured document to extract the verification data from.

======= options?

ProofVerifierOptions

The options for the proof verifier.

Returns

Promise<VerificationData>

The verification data.

Overrides

ProofVerifier.extractVerificationData