Package org.stellar.sdk
Class Signer
java.lang.Object
org.stellar.sdk.Signer
Signer is a helper class that creates
SignerKey
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SignerKey
ed25519PublicKey
(@NonNull KeyPair keyPair) static SignerKey
preAuthTx
(byte @NonNull [] hash) CreatepreAuthTx
SignerKey
from a transaction hash.static SignerKey
preAuthTx
(@NonNull Transaction tx) static SignerKey
sha256Hash
(byte @NonNull [] hash) Createsha256Hash
SignerKey
from a sha256 hash of a preimage.static SignerKey
signedPayload
(SignedPayloadSigner signedPayloadSigner)
-
Constructor Details
-
Signer
public Signer()
-
-
Method Details
-
ed25519PublicKey
- Parameters:
keyPair
- the keypair- Returns:
- the
ed25519PublicKey
SignerKey
object.
-
sha256Hash
Createsha256Hash
SignerKey
from a sha256 hash of a preimage.- Parameters:
hash
- the hash of a preimage- Returns:
- the
sha256Hash
SignerKey
object.
-
preAuthTx
- Parameters:
tx
- the transaction- Returns:
- the
preAuthTx
SignerKey
object.
-
preAuthTx
CreatepreAuthTx
SignerKey
from a transaction hash.- Parameters:
hash
- the hash of a transaction- Returns:
- the
preAuthTx
SignerKey
object.
-
signedPayload
- Parameters:
signedPayloadSigner
- signed payload values- Returns:
- org.stellar.sdk.xdr.SignerKey
-