Trait

org.bitcoins.wallet.models

SpendingInfoDb

Related Doc: package models

Permalink

sealed trait SpendingInfoDb extends DbRowAutoInc[SpendingInfoDb]

The database level representation of a UTXO. When storing a UTXO we don't want to store sensitive material such as private keys. We instead store the necessary information we need to derive the private keys, given the root wallet seed.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpendingInfoDb
  2. DbRowAutoInc
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type PathType <: HDPath

    Permalink
    Attributes
    protected
  2. abstract type SpendingInfoType <: SpendingInfoDb

    Permalink

    This type is here to ensure copyWithSpent returns the same type as the one it was called on.

    This type is here to ensure copyWithSpent returns the same type as the one it was called on.

    Attributes
    protected

Abstract Value Members

  1. abstract def confirmations: Int

    Permalink
  2. abstract def copyWithConfirmations(confirmations: Int): SpendingInfoType

    Permalink

    Updates the confirmations field

  3. abstract def copyWithId(id: Long): SpendingInfoDb

    Permalink
    Definition Classes
    DbRowAutoInc
  4. abstract def copyWithSpent(spent: Boolean): SpendingInfoType

    Permalink

    Updates the spent field

  5. abstract def id: Option[Long]

    Permalink
    Definition Classes
    SpendingInfoDb → DbRowAutoInc
  6. abstract def outPoint: TransactionOutPoint

    Permalink
  7. abstract def output: TransactionOutput

    Permalink
  8. abstract def privKeyPath: PathType

    Permalink
  9. abstract def redeemScriptOpt: Option[ScriptPubKey]

    Permalink
  10. abstract def scriptWitnessOpt: Option[ScriptWitness]

    Permalink
  11. abstract def spent: Boolean

    Permalink

    Whether or not this TXO is spent from our wallet

  12. abstract def txid: DoubleSha256DigestBE

    Permalink

    The TXID of the transaction this output was received in

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. val hashType: HashType

    Permalink
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toHumanReadableString: String

    Permalink

    Converts the UTXO to the canonical txid:vout format

  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. def toUTXOSpendingInfo(account: AccountDb, walletSeed: BIP39Seed): BitcoinUTXOSpendingInfo

    Permalink

    Converts a non-sensitive DB representation of a UTXO into a signable (and sensitive) real-world UTXO

  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DbRowAutoInc[SpendingInfoDb]

Inherited from AnyRef

Inherited from Any

Ungrouped