Damus
Vitor Pamplona profile picture
Vitor Pamplona
@VitorPamplona
I just realized I can rebuild our OTS validator to use a local copy of the bitcoin chain instead of online block explorers. We only need block headers! Nothing else from the chain is touched โ€” no transactions, no UTXOs, no scripts, no witness data, no mempool. That is a ~75 MB download, 1โ€“10 minutes wall-clock, ~2 s CPU, ~72 MB on disk directly from the Bitcoin Core network.

Looks like an easy win. Concerns?
8โค๏ธ1๐Ÿ‘€1๐Ÿ˜ฑ1๐Ÿค™1
Jestopher · 9w
Sounds too good to be true
shadowbip · 9w
solid work. using explorers is a privacy leak by design. headers r enough for ots but u should still check them against ur own node. teh footprint is tiny and its much safer than some api
SatsAndSports · 9w
You need a bit more than the header, right? You also need the transaction that contains the OTS op_return and the Merkle path from that Bitcoin transaction up to the root that's in header So that's two Merkle roots to validate: one of the OTS tree and another of the Bitcoin transactions It's still...
SatsAndSports · 9w
To save more diskspace: once downloaded and validated, I think you can store a compressed version of the chain of headers. I think you just need ~30MB to store the Merkle roots as, once validated, you just need those roots You just need a way to store a set of ~900,000 32-byte strings, so that you ...