-
Notifications
You must be signed in to change notification settings - Fork 159
feat!: introduce SignerKey class for enhanced signer key handling.
#712
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #712 +/- ##
============================================
+ Coverage 80.41% 80.74% +0.32%
- Complexity 1269 1294 +25
============================================
Files 215 214 -1
Lines 5030 5052 +22
Branches 421 425 +4
============================================
+ Hits 4045 4079 +34
+ Misses 724 715 -9
+ Partials 261 258 -3
🚀 New features to boost your workflow:
|
06d89fc to
587f67b
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.
Pull Request Overview
This pull request introduces a comprehensive refactoring that replaces the legacy Signer and SignedPayloadSigner classes with a new unified SignerKey class for enhanced signer key handling in the Stellar SDK. The changes aim to provide a more robust and type-safe API for working with different types of signer keys.
Key changes include:
- Introduction of a new
SignerKeyclass that supports all four Stellar signer types (Ed25519, Pre-auth TX, Hash-X, and Ed25519 Signed Payload) - Removal of deprecated
SignerandSignedPayloadSignerclasses - Updates to operation classes and transaction preconditions to use the new
SignerKeytype - Enhanced StrKey functionality for signed payload validation
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/org/stellar/sdk/SignerKey.java | New comprehensive SignerKey class supporting all signer types with XDR conversion capabilities |
| src/main/java/org/stellar/sdk/StrKey.java | Updated to work with raw byte arrays and added signed payload validation |
| src/main/java/org/stellar/sdk/operations/SetOptionsOperation.java | Updated to use new SignerKey class instead of XDR SignerKey |
| src/main/java/org/stellar/sdk/operations/RevokeSignerSponsorshipOperation.java | Updated to use new SignerKey class instead of XDR SignerKey |
| src/main/java/org/stellar/sdk/TransactionPreconditions.java | Updated to use List instead of List<org.stellar.sdk.xdr.SignerKey> |
| src/main/java/org/stellar/sdk/KeyPair.java | Removed deprecated XDR SignerKey methods |
| src/main/java/org/stellar/sdk/Signer.java | Deleted - functionality moved to SignerKey |
| src/main/java/org/stellar/sdk/SignedPayloadSigner.java | Deleted - functionality moved to SignerKey.Ed25519SignedPayload |
| CHANGELOG.md | Documents breaking changes and new features |
No description provided.