forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 117
fix(p2pk): validate expected pubkey correctly for p2pk inputs #2408
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
4e61580
add a p2pk signature verifier
mariocynicys 15f867f
simplify the parameters of verify_p2pk_input_pubkey
mariocynicys d638bc9
add test for p2pk detection function
mariocynicys 6f24451
add a test for verify_p2pk_input_pubkey
mariocynicys a89e101
add a test for verify_p2pk_input_pubkey (33-byte pubkeys)
mariocynicys 1f0e0f3
add more details to the signature version fixme
mariocynicys d127ade
fix compilation error
mariocynicys 2ce3c97
add to_secp256k1_pubkey() to Public
mariocynicys d1b2e4e
adjust verify_p2pk_input_pubkey() to account for both pubkey formats
mariocynicys a97afb4
simplify does_script_spend_p2pk
mariocynicys 8a9923a
review(sami): resolve a couple of comments - readability, DRY, cleanness
mariocynicys ba82af5
import the correct Deref
mariocynicys b262954
review(dimxy): fix typo in 'signature'
mariocynicys 3f6ce9b
review(dimxy): utilize the match for the successfulness check
mariocynicys b161cd4
review(dimxy): add a doc comment for `check_all_utxo_inputs_signed_by…
mariocynicys 715f504
don't list (and thus spend) p2pk outputs for segwit coins
mariocynicys 3e0bb9a
Merge remote-tracking branch 'origin/dev' into p2pk-spends-in-swaps
mariocynicys bdb3d05
fix utxo inputs sig check doc comment
mariocynicys f435492
be more idomatic with matches
mariocynicys f33ff36
Merge remote-tracking branch 'origin/dev' into p2pk-spends-in-swaps
mariocynicys 04dfbf4
get the amount from rpc for overwintered txs
mariocynicys 75eabfa
add a test for overwintered txs p2pk input verification
mariocynicys 8fdd7d3
review(dimxy): just query for the prev_output and check it against th…
mariocynicys 86b0949
Revert "review(dimxy): just query for the prev_output and check it ag…
mariocynicys 95411c0
use get_transaction_bytes instead of get_versbose_transaction
mariocynicys 72d6754
review(onur): inline a small frequently used method
mariocynicys cffe6c0
review(onur): reorder if conditions for readability - make the p2pk f…
mariocynicys 440f1e7
review(onur): move scriptsig utitlity method to impl Script
mariocynicys 0a84be1
review(onur): separate prev tx fetching and amount setting logic in p…
mariocynicys a2c8f8f
review(onur): add a pre-check to exit early if the inputs are empty
mariocynicys 77aa1b1
lazily calculate `unsigned_tx` only when needed
mariocynicys e3d1edb
Revert "review(onur): add a pre-check to exit early if the inputs are…
mariocynicys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.