-
Notifications
You must be signed in to change notification settings - Fork 659
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
Bitcoin wire format rigidity #2094
Comments
Can you elaborate on this idea? |
Yeah -- the thing we would need to do is identify that the scriptSig is in a format that we understand, for example, we could see a script that looks like:
And assume that the spent output is the normal p2pkh script (we'd compute the hash160 of the pubkey ourselves). Then, we'd need to actually perform the Bitcoin signature validation on the transaction as if this were the case. If it passes the signature validation, then we can associate the transaction with that pubkey. We could perform similar validation for other standardized script types. |
We may need to bump this to stacks 2.1 |
A really simple way to remove the pain from this is to increase the window of consideration for a |
From @lgalabru:
I agree with the above, and think there's some ways we can explore to reduce this rigidity. I think for things like the total count of outputs and the order of them, there's a good reason for doing this beyond simplicity (we want all transactions to cost the same whether they are burns or PoX transfers: we shouldn't favor one over the other).
Another option for the UTXO chaining requirement is performing Bitcoin signature validation in the stacks-node itself, rather than relying on bitcoind's own validation. That's probably easier said than done, but it's definitely possible.
The text was updated successfully, but these errors were encountered: