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

    Function findSigningKey

    • Find the private key that can sign for a given compressed public key.

      Parameters

      • pubkey: string

        Compressed SEC1 public key (33 bytes, hex-encoded) to match against.

      • privkeys: string | string[]

        One or more candidate private keys (hex-encoded).

      Returns string

      The matching private key hex string.

      If no candidate key derives to the expected pubkey.