Cashu-TS - v3.7.2
    Preparing search index...

    Function parseP2PKSecret

    • Parse a P2PK Secret and validate NUT-10 shape and NUT-11 constraints.

      Parameters

      • secret: string | Secret

        The Proof secret.

      Returns Secret

      Secret object.

      If the JSON is invalid, NUT-10 secret is malformed, or sigflag is unrecognised.

    • Parameters

      • secret: Uint8Array

      Returns Secret

      Pass a string or Secret instead.