Bitcoin Forum
July 13, 2026, 09:27:21 AM *
News: Latest Bitcoin Core release: 31.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why does the bitcoin protocol enforces no dublicate inputs at consensus  (Read 28 times)
hmbdofficial (OP)
Member
**
Offline

Activity: 234
Merit: 73


View Profile
July 12, 2026, 09:20:19 PM
Last edit: July 12, 2026, 09:37:52 PM by hmbdofficial
 #1

Looking the the transaction structure and bitcoin protocol enforcement, one will just wonder how the bitcoin protocol enforce the no dublicate inputs at the consensus level, and also what the security  implications it may cause If a soft work is proposed to relax this in favor of allowing replacement of inputs within the same block similar to certain covenant proposal.
I also thought about this from a protocol design perspective, why was the witness structure (segwit) was implemented as soft work rather than a hard fork, and also what specific risk it would arisen if the witness Markle root had been replaced in the coinbase transaction instead of the block header extension?
ABCbits
Legendary
*
Offline

Activity: 3668
Merit: 10195



View Profile
Today at 08:22:24 AM
 #2

Looking the the transaction structure and bitcoin protocol enforcement, one will just wonder how the bitcoin protocol enforce the no dublicate inputs at the consensus level

Can you elaborate more? Bitcoin node have UTXO set (sometimes called chainstate) to prevent same input spend more than once and check whether transaction actually use unspend input that actually exist.

why was the witness structure (segwit) was implemented as soft work rather than a hard fork

I recall the main reason is backward compatibility, which increase chance it would be supported/adopted.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!