case class TransactionSigningRequest(transaction: SignedTransaction, form: Map[String, (String, String)] = Map.empty, callback: Option[HttpUrl] = None, pubkey: Option[PublicKey] = None, message: Option[String] = None, networkPassphrase: Option[String] = None, signature: Option[DomainSignature] = None) extends Product with Serializable
A request to a transaction to be signed.
- transaction
The signed transaction to be encoded
- form
The additional information required by the user in the form
form_label -> (txrep_field, form_hint)
- callback
the uri to post the transaction to after signing
- pubkey
the public key associated with the signer who should sign
- message
an optional message for displaying to the user
- networkPassphrase
the passphrase of the target network, if it's not the public/main network
- signature
a domain and signature that proves the validity of this signing request
- See also
See https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0007.md#operation-tx|SEP-0007 for full specification
- Alphabetic
- By Inheritance
- TransactionSigningRequest
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TransactionSigningRequest(transaction: SignedTransaction, form: Map[String, (String, String)] = Map.empty, callback: Option[HttpUrl] = None, pubkey: Option[PublicKey] = None, message: Option[String] = None, networkPassphrase: Option[String] = None, signature: Option[DomainSignature] = None)
- transaction
The signed transaction to be encoded
- form
The additional information required by the user in the form
form_label -> (txrep_field, form_hint)
- callback
the uri to post the transaction to after signing
- pubkey
the public key associated with the signer who should sign
- message
an optional message for displaying to the user
- networkPassphrase
the passphrase of the target network, if it's not the public/main network
- signature
a domain and signature that proves the validity of this signing request
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val callback: Option[HttpUrl]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val form: Map[String, (String, String)]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val message: Option[String]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val networkPassphrase: Option[String]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val pubkey: Option[PublicKey]
- def sign(fqdn: String, key: KeyPair): TransactionSigningRequest
Sign the signing request with the given key.
Sign the signing request with the given key.
- fqdn
The fully-qualified domain name that contains the TOML file specifying the signer's public key.
- key
The private key associated with the declared public key.
- returns
this request with a signature populated. No attempt is made to validate that the provided
key
matches the public key declared in the TOML file of thefqdn
underURI_REQUEST_SIGNING_KEY
. No structural validation is performed onfqdn
String.
- See also
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0007.md#request-signing for more info.
- val signature: Option[DomainSignature]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toUrl: String
- val transaction: SignedTransaction
- def validateSignature(useHttps: Boolean = true, port: Int = 443)(implicit ec: ExecutionContext): Future[SignatureValidation]
If a signature is present, executes a round-trip to the domain info of the declared domain to fetch the signing public key and checks the signature against that key.
If a signature is present, executes a round-trip to the domain info of the declared domain to fetch the signing public key and checks the signature against that key.
- returns
NoSignaturePresent if there is no signature declared InvalidSignature if the domain cannot be reached, has no TOML, does not declare a signing key or the key used does not match the declared key ValidSignature if the signature is valid.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated