Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Pending

### Update:
- feat: add `isValidSignedPayload` to `StrKey` class, this function can be used to validate the ed25519 signed payload. ([#712](https://github.com/stellar/java-stellar-sdk/pull/712))

### Breaking changes:
- feat: add `org.stellar.sdk.SignerKey` for enhanced signer key handling. ([#712](https://github.com/stellar/java-stellar-sdk/pull/712))
- `org.stellar.sdk.Signer` and `org.stellar.sdk.SignedPayloadSigner` has been removed, use `org.stellar.sdk.SignerKey` instead.
- The `StrKey#encodeSignedPayload(SignedPayloadSigner)` and `StrKey#decodeSignedPayload(String)` methods now operate on raw `byte[]` instead of the `SignedPayloadSigner` object to provide more flexibility.
- `KeyPair#fromXdrSignerKey()` and `KeyPair#getXdrSignerKey()` have been removed, use `org.stellar.sdk.SignerKey` instead.
- The type of `TransactionPreconditions#extraSigners` has been changed from `List<org.stellar.sdk.xdr.SignerKey>` to `List<org.stellar.sdk.SignerKey>`.
- The type of `SetOptionsOperation#signer` has been changed from `org.stellar.sdk.xdr.SignerKey` to `org.stellar.sdk.SignerKey`.
- The type of `RevokeSignerSponsorshipOperation#signer` has been changed from `org.stellar.sdk.xdr.SignerKey` to `org.stellar.sdk.SignerKey`.

## 2.0.0-beta0

### Update:
Expand Down
22 changes: 0 additions & 22 deletions src/main/java/org/stellar/sdk/KeyPair.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import org.stellar.sdk.xdr.DecoratedSignature;
import org.stellar.sdk.xdr.PublicKeyType;
import org.stellar.sdk.xdr.SignatureHint;
import org.stellar.sdk.xdr.SignerKey;
import org.stellar.sdk.xdr.SignerKeyType;
import org.stellar.sdk.xdr.Uint256;
import org.stellar.sdk.xdr.XdrDataOutputStream;

Expand Down Expand Up @@ -224,16 +222,6 @@ public AccountID getXdrAccountId() {
return accountID;
}

/** Returns the XDR {@link SignerKey} for this keypair. */
public SignerKey getXdrSignerKey() {
SignerKey signerKey = new SignerKey();
signerKey.setDiscriminant(SignerKeyType.SIGNER_KEY_TYPE_ED25519);
Uint256 uint256 = new Uint256();
uint256.setUint256(getPublicKey());
signerKey.setEd25519(uint256);
return signerKey;
}

/**
* Creates a new KeyPair from an XDR {@link org.stellar.sdk.xdr.PublicKey}.
*
Expand All @@ -244,16 +232,6 @@ public static KeyPair fromXdrPublicKey(org.stellar.sdk.xdr.PublicKey key) {
return KeyPair.fromPublicKey(key.getEd25519().getUint256());
}

/**
* Creates a new KeyPair from an XDR {@link SignerKey}.
*
* @param key The XDR {@link SignerKey} object.
* @return KeyPair
*/
public static KeyPair fromXdrSignerKey(SignerKey key) {
return KeyPair.fromPublicKey(key.getEd25519().getUint256());
}

/**
* Sign the provided data with the keypair's private key.
*
Expand Down
68 changes: 0 additions & 68 deletions src/main/java/org/stellar/sdk/SignedPayloadSigner.java

This file was deleted.

100 changes: 0 additions & 100 deletions src/main/java/org/stellar/sdk/Signer.java

This file was deleted.

Loading