Blockchain Commons Crypto TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function ecdsaVerify

    • Verify an ECDSA signature with secp256k1.

      The message is hashed with double SHA-256 before verification (Bitcoin standard).

      Parameters

      • publicKey: Uint8Array

        33-byte compressed secp256k1 public key

      • signature: Uint8Array

        64-byte compact signature (r || s format)

      • message: Uint8Array

        Original message that was signed

      Returns boolean

      true if signature is valid, false if signature verification fails

      If public key is not 33 bytes or signature is not 64 bytes