Skip to content

Conversation

@overcat
Copy link
Member

@overcat overcat commented Jul 17, 2025

No description provided.

@codecov
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

Attention: Patch coverage is 92.23301% with 8 lines in your changes missing coverage. Please review.

Project coverage is 80.74%. Comparing base (a5cb912) to head (77fa614).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/main/java/org/stellar/sdk/SignerKey.java 89.87% 5 Missing and 3 partials ⚠️
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     
Files with missing lines Coverage Δ
src/main/java/org/stellar/sdk/KeyPair.java 85.45% <ø> (-0.02%) ⬇️
src/main/java/org/stellar/sdk/StrKey.java 90.43% <100.00%> (+1.72%) ⬆️
...java/org/stellar/sdk/TransactionPreconditions.java 94.52% <100.00%> (+0.49%) ⬆️
...k/operations/RevokeSignerSponsorshipOperation.java 100.00% <100.00%> (ø)
...rg/stellar/sdk/operations/SetOptionsOperation.java 88.00% <100.00%> (ø)
src/main/java/org/stellar/sdk/SignerKey.java 89.87% <89.87%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@overcat overcat force-pushed the refactor/signer-key-and-signer branch from 06d89fc to 587f67b Compare July 18, 2025 08:18
@overcat overcat requested a review from Copilot July 18, 2025 08:29
Copy link

Copilot AI left a 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 SignerKey class that supports all four Stellar signer types (Ed25519, Pre-auth TX, Hash-X, and Ed25519 Signed Payload)
  • Removal of deprecated Signer and SignedPayloadSigner classes
  • Updates to operation classes and transaction preconditions to use the new SignerKey type
  • 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

@overcat overcat merged commit 2c3b28e into master Jul 18, 2025
9 checks passed
@overcat overcat deleted the refactor/signer-key-and-signer branch July 18, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants