@cashu/cashu-ts
    Preparing search index...

    Function verifyP2PKSecretSignature

    • Verifies a Schnorr signature on a P2PK secret.

      Parameters

      • signature: string

        The Schnorr signature (hex-encoded).

      • secret: string

        The Secret to verify.

      • pubkey: string

        The Cashu P2PK public key (hex-encoded, X-only or with 02/03 prefix).

      Returns boolean

      True if the signature is valid, false otherwise.