New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too late for OP_PUSH_TX or equivalent? #5
Comments
The functionality you describe for OP_PUSH_TX is already possible on bitcoin sv using a technique developed by Nchain a few years ago. Please get in touch through the support page at bitcoinsv.io to discuss further. |
Looking forward to hearing more! |
I emailed the address on the support page and haven't heard back. If the technique is patented as CSW has implied then I don't see what's wrong with sharing it. I don't mind waiting but I'm itching to start translating EVM-based contract systems into UTXO form. |
nvm, I see the discussion in atlantis chat. Thank you! |
For the reader interested in the technique: You can create a scriptPubKey that requires the spending transaction to be pushed to the stack. Then, inside script, you calculate the sighash and check it against the signature provided. Then you do an OP_CHECKSIGVERIFY to ensure that the provided signature really is a valid one. |
@shilch I'm confused, how can you calculate the sighash of the transaction without replacing the scriptSig with the scriptPubKey in the spending transaction. AFAIK scriptPubKeys can't reference themselves... |
@shade Sorry for the delayed response, I somehow didn't get any notification from GitHub. |
@shilch Oh no worries. Sorry about the late response from me too (same issue). I think the medium article from the Scrypt team cleared up my confusion. |
(copied/edited from a message a sent to shadders)
I have one question about Bitcoin's L1.
I really hope I am not understanding something about Bitcoin's script and that I'm simply wrong about these posts.
Thank you in advance if you have a minute to process these, especially the most recent one (first in the list). I'm reaching out to you because every other BSV dev outright ignores what I'm trying to say and essentially switches to saying the equivalent of "you'll see, you nonbeliever". The spec is here now, it's either possible or not.
To be very clear, I am not trying to make yet another network. I would absolutely love to discover this was possible on BSV, I want to be able to retract those posts and work on Bitcoin directly.
Someone pointed me to this repo for the actual spec and indeed and it looks like there is nothing that would enable this functionality without the use of oracles. However,
OP_PUSH_TX
would be relatively simple to implement, and general enough to achieve everything I describe in the posts above, and crucially it would not change the asymptotic validation complexity at all.The text was updated successfully, but these errors were encountered: