Packages

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestDLCClient
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val accept: DLCAcceptWithoutSigs
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val dlcTxBuilder: DLCTxBuilder
  8. val dlcTxSigner: DLCTxSigner
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def executeDLC(dlcSetup: SetupDLC, oracleSigsF: Future[Vector[OracleSignatures]]): Future[ExecutedDLCOutcome]
  11. def executeRefundDLC(dlcSetup: SetupDLC): RefundDLCOutcome
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. val fundingPrivKey: ECPrivateKey
  14. def fundingTx: Transaction
  15. lazy val fundingTxIdBE: DoubleSha256DigestBE
  16. val fundingUtxos: Vector[ScriptSignatureParams[InputInfo]]
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. val isInitiator: Boolean
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. val messages: Vector[OracleOutcome]
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val offer: DLCOffer
  25. val payoutPrivKey: ECPrivateKey
  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. def setupDLCAccept(sendSigs: (CETSignatures, PartialSignature) => Future[Unit], getSigs: Future[(CETSignatures, PartialSignature, 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

  28. def setupDLCOffer(getSigs: Future[(CETSignatures, PartialSignature)], sendSigs: (CETSignatures, PartialSignature, 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

  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. val timeouts: DLCTimeouts
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped