Cashu-TS - v4.12.0
    Preparing search index...

    Function assertSignerAuthorised

    • Internal

      Asserts the lock currently expects a signature from privateKey.

      Parameters

      • secretStr: string | Secret

        The NUT-11 P2PK secret.

      • privateKey: PrivKey

        A single private key (hex string or Uint8Array).

      Returns string

      The signer's x-only pubkey.

      Compared x-only, since Schnorr verification ignores parity. Nostr pubkeys prepend 02 by convention, ignoring actual Y-parity.

      If the secret is malformed or does not name the key.