case class TestDLCClient(offer: DLCOffer, accept: DLCAcceptWithoutSigs, isInitiator: Boolean, fundingPrivKey: ECPrivateKey, payoutPrivKey: ECPrivateKey, fundingUtxos: Vector[ScriptSignatureParams[InputInfo]])(implicit ec: ExecutionContext) extends Product with Serializable
This case class allows for the construction and execution of Discreet Log Contracts between two parties running on this machine (for tests).
- offer
The DLCOffer associated with this DLC
- accept
The DLCAccept (without sigs) associated with this DLC
- isInitiator
True if this client sends the offer message
- fundingPrivKey
This client's funding private key for this event
- payoutPrivKey
This client's payout private key for this event
- fundingUtxos
This client's funding BitcoinUTXOSpendingInfo collection
- Alphabetic
- By Inheritance
- TestDLCClient
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TestDLCClient(offer: DLCOffer, accept: DLCAcceptWithoutSigs, isInitiator: Boolean, fundingPrivKey: ECPrivateKey, payoutPrivKey: ECPrivateKey, fundingUtxos: Vector[ScriptSignatureParams[InputInfo]])(implicit ec: ExecutionContext)
- offer
The DLCOffer associated with this DLC
- accept
The DLCAccept (without sigs) associated with this DLC
- isInitiator
True if this client sends the offer message
- fundingPrivKey
This client's funding private key for this event
- payoutPrivKey
This client's payout private key for this event
- fundingUtxos
This client's funding BitcoinUTXOSpendingInfo collection
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
- val accept: DLCAcceptWithoutSigs
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val dlcTxBuilder: DLCTxBuilder
- val dlcTxSigner: DLCTxSigner
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def executeDLC(dlcSetup: SetupDLC, oracleSigsF: Future[Vector[OracleSignatures]]): Future[ExecutedDLCOutcome]
- def executeRefundDLC(dlcSetup: SetupDLC): RefundDLCOutcome
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val fundingPrivKey: ECPrivateKey
- def fundingTx: Transaction
- lazy val fundingTxIdBE: DoubleSha256DigestBE
- val fundingUtxos: Vector[ScriptSignatureParams[InputInfo]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val isInitiator: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val messages: Vector[OracleOutcome]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val offer: DLCOffer
- val payoutPrivKey: ECPrivateKey
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def setupDLCAccept(sendSigs: (CETSignatures, PartialSignature[ECDigitalSignature]) => Future[Unit], getSigs: Future[(CETSignatures, PartialSignature[ECDigitalSignature], FundingSignatures)]): Future[SetupDLC]
Sets up the non-initiator's DLC given functions for sending CETSignatures to the initiator as well as receiving CETSignatures and FundingSignatures from them
- def setupDLCOffer(getSigs: Future[(CETSignatures, PartialSignature[ECDigitalSignature])], sendSigs: (CETSignatures, PartialSignature[ECDigitalSignature], FundingSignatures) => Future[Unit], getFundingTx: Future[Transaction]): Future[SetupDLC]
Sets up the initiator's DLC given functions for getting CETSignatures from the non-initiator as well as sending signatures to them, and lastly a Future which will be populated with the broadcasted (or relayed) fully signed funding transaction
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val timeouts: DLCTimeouts
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()