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 SignerKeyed25519PublicKey(@NonNull KeyPair keyPair) static SignerKeypreAuthTx(byte @NonNull [] hash) CreatepreAuthTxSignerKeyfrom a transaction hash.static SignerKeypreAuthTx(@NonNull Transaction tx) static SignerKeysha256Hash(byte @NonNull [] hash) Createsha256HashSignerKeyfrom a sha256 hash of a preimage.static SignerKeysignedPayload(SignedPayloadSigner signedPayloadSigner)
-
Constructor Details
-
Signer
public Signer()
-
-
Method Details
-
ed25519PublicKey
- Parameters:
keyPair- the keypair- Returns:
- the
ed25519PublicKeySignerKeyobject.
-
sha256Hash
Createsha256HashSignerKeyfrom a sha256 hash of a preimage.- Parameters:
hash- the hash of a preimage- Returns:
- the
sha256HashSignerKeyobject.
-
preAuthTx
- Parameters:
tx- the transaction- Returns:
- the
preAuthTxSignerKeyobject.
-
preAuthTx
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
-