Why your crypto wallet needs two balances
Watch on YouTube (opens in a new tab)- Speaker
- monsterbitar
- Space
- Published
- Length
Transcript
Imagine now, you want to make sure that you don't re-spend funds faster than some certain rate. So, you add a little bit of delay in your system, and you now have a pay to public key hash that requires you to wait a week after you get a payment before you can spend the specific payment. Once you have moved away from the fixed pay to public key hash to this pay to public key hash with a delay, each output now has more than one data point that determines whether they are spendable right now or not. Not only do we need the key, we also need to compare the current time. With the actual template, since the spending conditions are listed in the template, the engine can evaluate this without executing on it and can give you an answer for whether something is spendable or not, allowing you to split your balance into a pending balance that you might have later and a liquid balance that you do have now.


