Class Signer

java.lang.Object
org.stellar.sdk.Signer

public class Signer extends Object
Signer is a helper class that creates SignerKey objects.
  • Constructor Details

    • Signer

      public Signer()
  • Method Details

    • ed25519PublicKey

      public static SignerKey ed25519PublicKey(@NonNull @NonNull KeyPair keyPair)
      Create ed25519PublicKey SignerKey from a KeyPair
      Parameters:
      keyPair - the keypair
      Returns:
      the ed25519PublicKey SignerKey object.
    • sha256Hash

      public static SignerKey sha256Hash(byte @NonNull [] hash)
      Create sha256Hash SignerKey from a sha256 hash of a preimage.
      Parameters:
      hash - the hash of a preimage
      Returns:
      the sha256Hash SignerKey object.
    • preAuthTx

      public static SignerKey preAuthTx(@NonNull @NonNull Transaction tx)
      Create preAuthTx SignerKey from a Transaction hash.
      Parameters:
      tx - the transaction
      Returns:
      the preAuthTx SignerKey object.
    • preAuthTx

      public static SignerKey preAuthTx(byte @NonNull [] hash)
      Create preAuthTx SignerKey from a transaction hash.
      Parameters:
      hash - the hash of a transaction
      Returns:
      the preAuthTx SignerKey object.
    • signedPayload

      public static SignerKey signedPayload(SignedPayloadSigner signedPayloadSigner)
      Create SignerKey SignerKey from SignedPayloadSigner
      Parameters:
      signedPayloadSigner - signed payload values
      Returns:
      org.stellar.sdk.xdr.SignerKey