How does a Kaspa threshold script allow two different spending conditions?

A Kaspa threshold script defines two separate rules for who can spend a locked balance and how. First, the owner can spend freely at any time by supplying a valid cryptographic signature — this is the normal owner-controlled path. Second, a borrower (anyone else) can also spend the balance, but only if the transaction sends the funds back to the identical script address with a value that exceeds the original input by at least a specified threshold amount. In other words, the borrower must leave behind more than they took. This means the same script covers both a trusted owner withdrawal and an untrusted pass-through that is constrained to add value, giving a single locked coin balance two distinct and enforceable uses.

Learn more ›