Cashu-TS - v4.0.0-rc3
    Preparing search index...

    Function getP2PKExpectedWitnessPubkeys

    • Returns the expected witness public keys from a NUT-11 P2PK secret.

      Parameters

      • secretStr: string | Secret

        The NUT-11 P2PK secret.

      Returns string[]

      Array of public keys or empty array.

      Does not tell you the pathway (Locktime or Refund MultiSig), only the keys that CAN currently sign. If no keys are returned, the proof is unlocked or expired with no refund path.

      If the secret is malformed or not P2PK.