@aleph-sdk/monorepo
    Preparing search index...

    Function verifyAvalanche

    • Provide a way to verify the authenticity of a signature associated with a given message. This method rely on the Keypair.recover() implementation.

      Parameters

      • message: Uint8Array<ArrayBufferLike> | SignableMessage

        The content of the signature to verify. It can be the result of GetVerificationBuffer() or directly a BaseMessage object.

      • signature: string

        The signature associated with the first params of this method.

      • signerPKey: string

        Optional, The publicKey associated with the signature to verify. It Needs to be under a hex serialized string.

      Returns Promise<boolean>