-
Notifications
You must be signed in to change notification settings - Fork 269
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
Implementation of RSKIP379 #2186
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
767dbe9
to
e96d03b
Compare
pipeline:run |
1cfdc9c
to
aa42ace
Compare
Added tests.
…onfigsForTest helper - Got rid of sigHash parameter when testing null values - Got rid of no needed comments - Renamed BRIDGE_BTC_TX_SIG_HASH_KEY to BRIDGE_BTC_TX_SIG_HASH
- Renamed test parameter provider's methods - Added tests testing invalid stored data, considered an illegal state of the storage
…idgeBtcTxSigHashes in a single rsk tx
- Created a copy of PegTestUtils.CreateHash method into BitcoinTestUtils. - Replaced usage of PegTestUtils.CreateHash method to BitcoinTestUtils.CreateHash
Added test that assert redeemScript can be obtained from input.
Made createBaseInputScriptThatSpendsFromTheFederation and createBaseRedeemScriptThatSpendsFromTheFederation methods simpler.
Made BridgeUtils.extractRedeemScriptFromInput public. Refactored BitcoinUtils.getFirstInputSigHash and tests to get redeemscript using BridgeUtils.extractRedeemScriptFromInput.
Reorganized tests.
- Moved common init test code to a beforeEach method.
- Added new test using a real btc transaction and checking extracted sigHash against the signature. Experiment worked. - Used ScriptBuilder to get p2SHScript.
- Refactored sighash verification.
- Renamed method to extractSignaturesFromTxInput.
Improved assertions at BitcoinUtilsTest.
Refactored helper methods.
…nstance variable so no need to be creating these variables for each test that needs it. - Fix some tests
Renamed test
ef66415
to
edda853
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
Kudos, SonarCloud Quality Gate passed! |
pipeline:run |
8 similar comments
pipeline:run |
pipeline:run |
pipeline:run |
pipeline:run |
pipeline:run |
pipeline:run |
pipeline:run |
pipeline:run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pipeline:run |
2 similar comments
pipeline:run |
pipeline:run |
Create an index in the Bridge to store the sighash of transactions created by the Bridge. This index can then be used to simplify the detection of peg-in/peg-out/migration transactions.
fed:bridge-btc-tx-index-integration
rit:adds-tbd600-fork