case class Challenge(signedTransaction: SignedTransaction, networkPassphrase: String, clock: Clock = Clock.systemUTC()) extends Product with Serializable
An authentication challenge as specified in SEP-0010
- signedTransaction
a specially formed transaction that forms the basis of the challenge.
- networkPassphrase
the passphrase of the network that the transaction is (and should continue to be) signed for.
- clock
the clock to used to detect timebound expiry.
- Alphabetic
- By Inheritance
- Challenge
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Challenge(signedTransaction: SignedTransaction, networkPassphrase: String, clock: Clock = Clock.systemUTC())
- signedTransaction
a specially formed transaction that forms the basis of the challenge.
- networkPassphrase
the passphrase of the network that the transaction is (and should continue to be) signed for.
- clock
the clock to used to detect timebound expiry.
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 clock: Clock
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val networkPassphrase: 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 signedTransaction: SignedTransaction
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toJson: String
Encode this challenge as JSON.
- def transaction: Transaction
The inner, raw transaction.
- def verify(answer: SignedTransaction, challenged: AccountResponse, threshold: Threshold)(implicit network: Network): ChallengeResult
Verifies that the provided signed transaction is the same as the challenge and has been signed by the enough of the signers to meet the required threshold.
Verifies that the provided signed transaction is the same as the challenge and has been signed by the enough of the signers to meet the required threshold.
- answer
the transaction that may have been signed by the challenged account.
- challenged
the client account that was challenged.
- threshold
the required threshold to be met by the signers.
- network
the network that the transaction is signed for.
- def verify(answer: SignedTransaction)(implicit network: Network): ChallengeResult
Verifies that the provided signed transaction is the same as the challenge and has been signed by the challenged account.
Verifies that the provided signed transaction is the same as the challenge and has been signed by the challenged account.
- answer
the transaction that may have been signed by the challenged account.
- network
the network that the transaction is signed for.
- 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