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

    Interface P2PKVerificationResult

    interface P2PKVerificationResult {
        lockState: LockState;
        locktime: number;
        main: P2PKPathInfo;
        path: P2PKSpendingPath;
        refund: P2PKPathInfo;
        success: boolean;
    }
    Index

    Properties

    lockState: LockState

    Current lock state derived from the proof secret.

    • PERMANENT: no finite locktime is set.
    • ACTIVE: a finite locktime exists and has not expired yet.
    • EXPIRED: the finite locktime has already expired.
    locktime: number

    Locktime from the proof secret as a unix timestamp, or Infinity for a permanent lock.

    Main spending path info — always populated.

    Which spending path was evaluated.

    • MAIN: main P2PK pubkeys satisfied the threshold.
    • REFUND: refund pubkeys satisfied the threshold after locktime expiry.
    • UNLOCKED: no active signer requirement remains, so anyone can spend.
    • FAILED: the proof is well-formed but the required threshold was not met.
    refund: P2PKPathInfo

    Refund spending path info — empty pubkeys/signers if no refund keys configured.

    success: boolean

    True when the proof is currently spendable via the returned path.