ColliderScript: Covenants in Bitcoin via 160-bit hash collisions
Enforces Bitcoin covenants without consensus changes by bridging Big Script and Small Script via SHA-1/RIPEMD-160 collision-based equivalence checks.
Schemes: ColliderScript, SHA-1, RIPEMD-160
Findings (quotes checked against the source text)
-
Covenants on Bitcoin outputs can be enforced without any Bitcoin protocol change by using a hash-collision-based equivalence check between Big Script and Small Script.
We introduce a method for enforcing covenants on Bitcoin outputs without requiring any changes to Bitcoin by designing a hash collision based equivalence check which bridges Bitcoin's limited Big Script to Bitcoin's Small Script.
-
The construction relies on 160-bit hash collisions, with birthday-bound cost around 2^80 work.
Our approach leverages finding collisions in the $160$-bit hash functions: SHA-1 and RIPEMD-160. By the birthday bound this should cost $\sim2^{80}$ work.
-
Each covenant spend costs about 2^86 hash queries and 2^56 bytes of space; breaking it is estimated at about 2^110 queries under a 3-way collision assumption.
Each spend of our covenant costs $\sim2^{86}$ hash queries and $\sim2^{56}$ bytes of space.
-
Security depends on an unproven assumption that finding a 3-way collision with short random inputs in 160-bit hashes is hard.
For security, we rely on an assumption regarding the hardness of finding a $3$-way collision (with short random inputs) in $160$-bit hash functions, arguing that if the assumption holds, breaking covenant enforcement requires $\sim2^{110}$ hash queries.
-
Transaction size estimates are rough because no Small Script implementations of SHA-1 or RIPEMD-160 existed at writing time.
We only provide rough estimates of the transaction size because, as of this writing, no Small Script implementations of the hash functions required, SHA-1 and RIPEMD-160, have been written.
Numbers (as extracted, not quote-checked)
- Birthday-bound collision work for 160-bit hashes: ~2^80
- Hash queries per covenant spend: ~2^86
- Space per covenant spend: ~2^56 bytes
- Hash queries to break covenant enforcement (under assumption): ~2^110
- Spend cost in Bitcoin mining time: ~33 hours
- Break cost in Bitcoin mining time: ~450,000 years
- Small Script total size limit per transaction: 4 megabytes
For builders
Covenant designs that depend on weakened 160-bit hash collision hardness are fragile and not a PQ building block; treat this as a Bitcoin covenant idea, not a quantum-safe primitive.
Limits
Security rests on an unproven 3-way collision hardness assumption; SHA-1 and RIPEMD-160 Small Script implementations did not exist, so size estimates are rough; not quantum-resistant analysis.
Topics: bitcoin-migration chain-design cryptanalysis hash-functions zk-proofs