3 ms·
> far short of the total revolution of societal structure that was promised. Satoshi promised no such thing. That sounds more like an Ethereum promise (to whic
by tromp 3y ago
> far short of the total revolution of societal structure that was promised.
Satoshi promised no such thing. That sounds more like an Ethereum promise (to which I don't subscribe).
> show me how to do a return peg validation on scriptless scripts
How does one do return peg validation in bitcoin script?
- adastra22 3y agoThe manual way. Validate SPV inclusion proofs using CAT, hash opcodes, bignum addition, etc. To be practical it requires block header commitments, but there are other reasons for wanting that. You also need relative locktime, which original bitcoin did not have. But that should be all that is required to be added. Other commonly cited things like Merkle branch verification opcodes just make the script more compact, or get around the fact that some required opcodes were later disabled and/or restricted from use with bignums. Re: bitcoin vs. ethereum, the bitcoin community pre-ethereum was very invested in the idea of decentralizing all the things. I remember: I was there and part of that history. But over time people interested in more than just payments or the bitcoin asset have left or switched to ethereum. Originally expressive smart contracting was very much in scope.
- tromp 3y ago> But that should be all that is required to be added. If you're talking about SPV inclusion on another chain, wouldn't one also need to verify cumulative diff on that other chain (if PoW based) ?
- adastra22 3y agoYou can add and compare bignums in bitcoin script.
- tromp 3y agoVerifying cumulative diff requires verifying possibly thousands of headers (all those between peg out and peg in), which is a completely impractical amount of witness data for one script.
- adastra22 3y agoCommitting headers in Merkle tree form or skip lists allow for logarithmic reduction in that number, as was worked out in the (2014?) sidechains whitepaper. 10’s of headers would be doable.
- tromp 3y agoBeyond requiring intrusive changes to Bitcoin like header commitments, and still needing dozen-KB scripts for pegs, it also limits properties of the sidechain. For instance, if the latter wants to use a memory-hard PoW like Cuckoo Cycle, I don't see how Bitcoin script (which cannot even loop) could verify a cycle in a pseudorandom graph.
- adastra22 3y agoI could argue that there’s no reason for any proof of work other than sha256 as these side chains should be merge mining, but we’re way off in a tangent thread. The point is that smart contracts actually do something other than “authorize payment”, and fancy Schnorr signing modes don’t come close to replicating those capabilities. And so long as there is a need for a programmable verification architecture, Forth-like languages are prttty ideal.