Gordian Envelope TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Interface Verifier

    A trait for types capable of verifying digital signatures.

    The Verifier interface provides a method to verify that a signature was created by a corresponding signer for a specific message.

    interface Verifier {
        verify(signature: Signature, message: Uint8Array): boolean;
    }

    Implemented by

    Index

    Methods

    Methods

    • Verifies a signature against a message.

      Parameters

      • signature: Signature

        The signature to verify

      • message: Uint8Array

        The message that was allegedly signed

      Returns boolean

      true if the signature is valid for the message, false otherwise