btcmirror icon indicating copy to clipboard operation
btcmirror copied to clipboard

Ring buffer for gas efficiency

Open dcposch opened this issue 2 years ago • 7 comments

@nibnalin

dcposch avatar Nov 05 '22 01:11 dcposch

Deploy Preview for distracted-gates-f46892 canceled.

Name Link
Latest commit f8b4a7a9a5cbd8dbffa0667efd2640902a6fa449
Latest deploy log https://app.netlify.com/sites/distracted-gates-f46892/deploys/6365b6dc130fd40009c329a7

netlify[bot] avatar Nov 05 '22 01:11 netlify[bot]

@0xclandestine

dcposch avatar Nov 05 '22 20:11 dcposch

@dcposch Should we merge this? ;)

ycryptx avatar Jan 12 '24 01:01 ycryptx

@ycryptx

when i started writing btcmirror, it felt like an obvious thing to ship. a trust-minimized way to prove bitcoin transactions on ethereum. why didn't that exist already?

no regrets shipping. it was a great solidity learning project!

but once it was running, working, i had a hard time finding anyone who cared. (same with Silver Portal, which builds on Bitcoin Mirror to provide a simple BTC/ETH dex.)

in the course of developing and testing, i used bitcoin self-custody wallets more than anyone else i've met. the main bitcoind python-qt wallet, plus a few others. they're absolutely terrible.

i had a hard time finding anyone else--even in a room full of experienced crypto developers--who've made any bitcoin transactions (on the actual chain, not in CB) at all in the last 5 years. based on my experience, easy to see why.

as far as i can tell, ~nobody outside institutions and traders actually use bitcoin to do anything other than hodl it. and the institutions and traders in turn are happy with centralized exchanges or OTC.

--

if anyone has a convincing use-case for btcmirror, i'd love to hear it.

dcposch avatar Jan 12 '24 04:01 dcposch

@dcposch I totally get it Daniel, everyone talks about usage and I can't for the life of me see it. I think your intuition about the need for btcmirror was right, just early. I'm seeing more and more people talk about the need for a trustless way to prove BTC state on other chains now that inscriptions and ordinals are a thing, so I've been researching what's out there, and stumbled on your great implementation.

ycryptx avatar Jan 12 '24 04:01 ycryptx

how production ready is it? I'm happy to help in development to get it to a ready place

ycryptx avatar Jan 12 '24 04:01 ycryptx

  • works
  • contract is very simple
  • not audited; could use community audit

go for it; lmk if you run into any trouble

i dont think the ringbuffer is necessary unless deploying to mainnet

much cheaper to run on l2; i recommend starting on OP mainnet

dcposch avatar Jan 13 '24 05:01 dcposch