Class: InternalEd25519Verifier

An internal implementation of the Verifier interface. This implementation uses the Ed25519 algorithm from the tweetnacl library.

Implements

  • Verifier

Constructors

Constructor

new InternalEd25519Verifier(): InternalEd25519Verifier

Returns

InternalEd25519Verifier

Methods

verify()

verify(securedDocument, options, cryptosuites): Promise<boolean>

Verify a signature of a message.

Parameters

======= securedDocument

SecuredDataDocument

The secured document to verify.

======= options

VerifierOptions

The options for the verification.

======= cryptosuites

ProofVerifier[]

The cryptosuites to use.

Returns

Promise<boolean>

True if the signature is valid, false otherwise.

Implementation of

Verifier.verify