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

    Function getP2PKLockState

    • Interpret the Secret's locktime relative to a given time.

      • PERMANENT: no valid locktime tag.
      • ACTIVE: now < locktime.
      • EXPIRED: now >= locktime.

      Parameters

      • secretStr: string | Secret

        The NUT-11 P2PK secret.

      • nowSeconds: number = ...

        Optional. The unix timestamp in seconds (Default: now)

      Returns LockState