Package org.stellar.sdk
Class Signer
java.lang.Object
org.stellar.sdk.Signer
Signer is a helper class that creates
SignerKey objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.stellar.sdk.xdr.SignerKeyed25519PublicKey(@NonNull KeyPair keyPair) static org.stellar.sdk.xdr.SignerKeypreAuthTx(byte @NonNull [] hash) CreatepreAuthTxSignerKeyfrom a transaction hash.static org.stellar.sdk.xdr.SignerKeypreAuthTx(@NonNull Transaction tx) CreatepreAuthTxSignerKeyfrom aTransactionhash.static org.stellar.sdk.xdr.SignerKeysha256Hash(byte @NonNull [] hash) Createsha256HashSignerKeyfrom a sha256 hash of a preimage.static org.stellar.sdk.xdr.SignerKeysignedPayload(SignedPayloadSigner signedPayloadSigner)
-
Constructor Details
-
Signer
public Signer()
-
-
Method Details
-
ed25519PublicKey
- Parameters:
keyPair- the keypair- Returns:
- the
ed25519PublicKeySignerKeyobject.
-
sha256Hash
public static org.stellar.sdk.xdr.SignerKey sha256Hash(byte @NonNull [] hash) Createsha256HashSignerKeyfrom a sha256 hash of a preimage.- Parameters:
hash- the hash of a preimage- Returns:
- the
sha256HashSignerKeyobject.
-
preAuthTx
CreatepreAuthTxSignerKeyfrom aTransactionhash.- Parameters:
tx- the transaction- Returns:
- the
preAuthTxSignerKeyobject.
-
preAuthTx
public static org.stellar.sdk.xdr.SignerKey preAuthTx(byte @NonNull [] hash) CreatepreAuthTxSignerKeyfrom a transaction hash.- Parameters:
hash- the hash of a transaction- Returns:
- the
preAuthTxSignerKeyobject.
-
signedPayload
- Parameters:
signedPayloadSigner- signed payload values- Returns:
- org.stellar.sdk.xdr.SignerKey
-