What is Nostr?
Max Hillebrand
npub1klk…x3vt
2024-10-18 06:36:45
in reply to nevent1q…rx4q

Max Hillebrand on Nostr: Your node defines the rules of what constitutes an unspent coin, a coin is initially ...

Your node defines the rules of what constitutes an unspent coin, a coin is initially created in a valid blocks first transaction, and spent by a transaction with a valid witness to a new coin with a locking script and amount.

For any transaction, your node checks that the inputs are valid previous transaction outputs that have not been spent, simply by looking if the coin ID (prev TX hash + output index) is in the utxo list, if not: invalid double spending transaction, if yes: valid transaction in block, and remove coin ID from utxo set.
Author Public Key
npub1klkk3vrzme455yh9rl2jshq7rc8dpegj3ndf82c3ks2sk40dxt7qulx3vt