-
Notifications
You must be signed in to change notification settings - Fork 268
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
Feature/powpeg validation protocol phase3 #2811
Merged
marcos-iov
merged 50 commits into
feature/powpeg_validation_protocol-integration
from
feature/powpeg_validation_protocol-phase3
Nov 12, 2024
Merged
Feature/powpeg validation protocol phase3 #2811
marcos-iov
merged 50 commits into
feature/powpeg_validation_protocol-integration
from
feature/powpeg_validation_protocol-phase3
Nov 12, 2024
+2,641
−929
Conversation
This file contains 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
marcos-iov
force-pushed
the
feature/powpeg_validation_protocol-integration
branch
from
October 18, 2024 15:39
c701904
to
b557817
Compare
marcos-iov
force-pushed
the
feature/powpeg_validation_protocol-phase3
branch
from
October 18, 2024 15:46
f751a26
to
48c63ee
Compare
marcos-iov
force-pushed
the
feature/powpeg_validation_protocol-integration
branch
from
October 24, 2024 20:21
b557817
to
8a1fa6f
Compare
…d code duplication
…ized and focussed
…d. Add test case for no matching script. Reorder methods. Add log assertions for when svp spend tx is not processed. Rename variables and methods
…ace redeem scripts being used in tests for some less shady and add tests for public method. Fix typo after rebase
Rename method to be more accurate and reuse it. Correct test
Add blank line to improve readability Replace usage of Collectors.toList with .toList to fix sonar complain Remove extra blank line rename to be consistent with other namings Remove global variable
Variable name and test assertion update Co-authored-by: jeremy-then <[email protected]> Co-authored-by: Antonio Pancorbo <[email protected]>
…on methods Reuse already declared variable Remove unused import
…onSupport feat(federation): add unit tests for getProposedFederationAddress in FederationSupport
feat(federation): add unit tests for getProposedFederationSize in FederationSupport feat(federation): change getProposedFederationSize to return Optional and wrap into all into FEDERATION_NON_EXISTENT code Update test assertion Co-authored-by: julia zack <[email protected]>
Make fields private to avoid sonar complain Use var to improve readability
…Support feat(federation): add unit tests for getProposedFederationCreationTime in FederationSupport
… in FederationSupport feat(federation): add unit tests for getProposedFederationCreationBlockNumber in FederationSupport
feat(peg): add unit tests for getProposedFederationAddress Bridge method feat(peg): move javadocs and simplify test
Update Bridge.java
…ederationSupport feat(federation): add unit tests for getProposedFederatorPublicKeyOfType in FederatorSupport feat(federation): misc comments feat(federation): add unit tests for key type rsk and mst for getProposedFederatorPublicOfType
…n FederationSupport
feat(peg): add unit tests for getProposedFederationCreationTime Bridge method refactor(federation): move javadocs
…umber in FederationSupport
feat(peg): add unit tests for getProposedFederationCreationBlockNumber Bridge Method refactor(federation): move javadocs
feat(peg): add unit tests for getProposedFederationSize Bridge Method refactor(federation): move javadocs
…ace redeem scripts being used in tests for some less shady and add tests for public method. Fix typo after rebase
…ederationSupport feat(federation): add javadoc for getProposedFederatorPublicKeyOfType in FederationSupport
feat(peg): add unit tests for getProposedFederatorPublicKeyOfType Bridge method feat(peg): add index out of bounds test for getting proposed fed pub key
…re method Remove addSvpSpendTxSignature method that would be part of another pr Remove optional logic to verify signatures Catch specific SignatureException Make getDecodedSignatures throw signature exception to handle just that type Avoid using isPresent / get and make code more functional. Align javadoc. Replace times(0) for never(). Change boolean method name to be affirmative. Change method responsibility to be more accurate. Change btcTx name for releaseTx name. Return false when catching exception when signing
…eccak rskTxHash. Remove logger.isDebugEnabled condition. Add tests for new utility methods. Rename method to be more specific Add test for when method should throw Add log when catching exception to avoid sonar warning Add logging error message when logging caught exception. Throw a dedicated exception in addSignature to better handling. Make deserializeRskTxHash method public to reuse it. Add tests. Remove unused import
…right file. Catch generic exceptions in Bridge method
…e it more clear and distinguishable Rename method to make it more clear and distinguishable Rename local variable to fix sonar complain Rename to more meaningful or accurate names. Correct logging message. Add explaining comment. Make code more functional Rename rskTxHash Refactor to improve readability. Add test for when there are not enough signatures. Add missing return statement Fix sonar complain Add missing logs and method name to logs.
marcos-iov
force-pushed
the
feature/powpeg_validation_protocol-phase3
branch
from
October 24, 2024 22:25
48c63ee
to
ad37c1e
Compare
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
…s instead of milliseconds
Fix wrong casting to long
marcos-iov
approved these changes
Nov 12, 2024
marcos-iov
merged commit Nov 12, 2024
760772c
into
feature/powpeg_validation_protocol-integration
2 checks passed
Quality Gate passedIssues Measures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implementation of the third phase of the PowPeg Spendability Protocol as specified in RSKIP419
Description
Add new proposed-federation-related
Bridge
methodsAlso add them to
BridgeSupport
andFederationSupport
classesCreate new
COMMIT_FEDERATION_FAILED
Bridge eventCreate the svp spend transaction that sends back the funds to the active PowPeg, proving that it can actually spend them
Add proposed federators signatures to the svp spend transaction through existing
addSignature
Refactor
addSignature
Refactor
BridgeEventLogger
implementationCreate new utility methods to keep code as clean as possible
How Has This Been Tested?
Types of changes
Checklist: