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

    Function parseP2PKSecret

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

      Parameters

      • secret: string | Secret

        The Proof secret.

      Returns Secret

      Secret object.

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

    • Parameters

      • secret: Uint8Array

      Returns Secret

      Pass a string or Secret instead.