-
Notifications
You must be signed in to change notification settings - Fork 35
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
[feat] Check if transaction output is provably unspendable #185
Comments
@m-kus can i give this a go kindly assign |
Hey @mubarak23! |
I would like to try this sir! |
Hey @Gerson2102! |
Can I take a look at this @m-kus. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am Blockchain developer with 2 years of experience, I have created and deployed many decentralized projects by mainly focussing on the the Smart Contracts development and secure transactions, I have built DApps, DeFi, which are realtime projects. How I plan on tackling this issueI would create a function that works in case of the following |
@Gerson2102 how is the progress on this task? |
Currently working on it. I already have the first function. The two left don't know how to do them. I was about to start asking questions about it. But did not have time recently, so maybe at night i wil start working again on it and I'll prepare questions for it. |
@Gerson2102 @m-kus can I join the task too, you don’t have to pay me or anything, I just want to contribute and learn, please let me help in this. |
@Sravya-212 no worries, there's gonna be more good first issues |
@m-kus would love to contribute to upcoming issues as well |
There are cases when we can say with 100% guarantee that a particular output cannot be spent.
Such cases include:
OP_RETURN
Implement three helper functions:
is_pubscript_unspendable(pubscript: @ByteArray)
invalidation/transaction
is_bip30_unspendable(block_height: u32)
invalidation/coinbase
validate_bip30_block_hash(block_height: u32, block_hash: @Digest)
invalidation/block
(ensures that these two exceptional blocks in the past has exact height/hash pair match)Call
validate_bip30_block_hash
invalidate_and_apply
.References:
The text was updated successfully, but these errors were encountered: