Object/Class

com.alexdupre.bitcoincash

Transaction

Related Docs: class Transaction | package bitcoincash

Permalink

object Transaction extends BtcSerializer[Transaction] with Serializable

Linear Supertypes
Serializable, Serializable, BtcSerializer[Transaction], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Transaction
  2. Serializable
  3. Serializable
  4. BtcSerializer
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. val LOCKTIME_THRESHOLD: Long

    Permalink
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def correctlySpends(tx: Transaction, inputs: Seq[Transaction], scriptFlags: Int): Unit

    Permalink
  8. def correctlySpends(tx: Transaction, inputs: Seq[Transaction], scriptFlags: Int, callback: Option[Callback]): Unit

    Permalink
  9. def correctlySpends(tx: Transaction, previousOutputs: Map[OutPoint, TxOut], scriptFlags: Int): Unit

    Permalink
  10. def correctlySpends(tx: Transaction, previousOutputs: Map[OutPoint, TxOut], scriptFlags: Int, callback: Option[Callback]): Unit

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashForSigning(tx: Transaction, inputIndex: Int, previousOutputScript: BinaryData, sigHashType: Int, amount: Satoshi, flags: Int = ...): Seq[Byte]

    Permalink

    hash a tx for signing

    hash a tx for signing

    tx

    input transaction

    inputIndex

    index of the tx input that is being processed

    previousOutputScript

    public key script of the output claimed by this tx input

    sigHashType

    signature hash type

    amount

    amount of the output claimed by this input

    returns

    a hash which can be used to sign the referenced tx input

  17. def hashForSigning(tx: Transaction, inputIndex: Int, previousOutputScript: Seq[ScriptElt], sighashType: Int): Seq[Byte]

    Permalink

    hash a tx for signing (pre-segwit)

    hash a tx for signing (pre-segwit)

    tx

    input transaction

    inputIndex

    index of the tx input that is being processed

    previousOutputScript

    public key script of the output claimed by this tx input

    sighashType

    signature hash type

    returns

    a hash which can be used to sign the referenced tx input

  18. def hashForSigning(tx: Transaction, inputIndex: Int, previousOutputScript: BinaryData, sighashType: Int): Seq[Byte]

    Permalink

    hash a tx for signing (pre-segwit)

    hash a tx for signing (pre-segwit)

    tx

    input transaction

    inputIndex

    index of the tx input that is being processed

    previousOutputScript

    public key script of the output claimed by this tx input

    sighashType

    signature hash type

    returns

    a hash which can be used to sign the referenced tx input

  19. def isCoinbase(input: Transaction): Boolean

    Permalink
  20. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def prepareForSigning(tx: Transaction, inputIndex: Int, previousOutputScript: BinaryData, sighashType: Int): Transaction

    Permalink

    prepare a transaction for signing a specific input

    prepare a transaction for signing a specific input

    tx

    input transaction

    inputIndex

    index of the tx input that is being processed

    previousOutputScript

    public key script of the output claimed by this tx input

    sighashType

    signature hash type

    returns

    a new transaction with proper inputs and outputs according to SIGHASH_TYPE rules

  25. def read(input: InputStream, protocolVersion: Long): Transaction

    Permalink

    read a message from a stream

    read a message from a stream

    returns

    a deserialized message

    Definition Classes
    TransactionBtcSerializer
  26. def read(in: String): Transaction

    Permalink
    Definition Classes
    BtcSerializer
  27. def read(in: String, protocolVersion: Long): Transaction

    Permalink

    read a message from a hex string

    read a message from a hex string

    in

    message binary data in hex format

    returns

    a deserialized message of type T

    Definition Classes
    BtcSerializer
  28. def read(in: Seq[Byte]): Transaction

    Permalink
    Definition Classes
    BtcSerializer
  29. def read(in: Seq[Byte], protocolVersion: Long): Transaction

    Permalink

    read a message from a byte array

    read a message from a byte array

    in

    serialized message

    returns

    a deserialized message

    Definition Classes
    BtcSerializer
  30. def read(in: InputStream): Transaction

    Permalink
    Definition Classes
    BtcSerializer
  31. def sign(input: Transaction, signData: Seq[SignData]): Transaction

    Permalink

    Sign a transaction.

    Sign a transaction. Cannot partially sign. All the input are signed with SIGHASH_ALL

    input

    transaction to sign

    signData

    list of data for signing: previous tx output script and associated private key

    returns

    a new signed transaction

  32. def signInput(tx: Transaction, inputIndex: Int, previousOutputScript: Seq[ScriptElt], sighashType: Int, amount: Satoshi, privateKey: PrivateKey): BinaryData

    Permalink

    sign a tx input

    sign a tx input

    tx

    input transaction

    inputIndex

    index of the tx input that is being processed

    previousOutputScript

    public key script of the output claimed by this tx input

    sighashType

    signature hash type, which will be appended to the signature

    amount

    amount of the output claimed by this tx input

    privateKey

    private key

    returns

    the encoded signature of this tx for this specific tx input

  33. def signInput(tx: Transaction, inputIndex: Int, previousOutputScript: BinaryData, sighashType: Int, amount: Satoshi, privateKey: PrivateKey): BinaryData

    Permalink

    sign a tx input

    sign a tx input

    tx

    input transaction

    inputIndex

    index of the tx input that is being processed

    previousOutputScript

    public key script of the output claimed by this tx input

    sighashType

    signature hash type, which will be appended to the signature

    amount

    amount of the output claimed by this tx input

    privateKey

    private key

    returns

    the encoded signature of this tx for this specific tx input

  34. def size(tx: Transaction, protocolVersion: Long = PROTOCOL_VERSION): Int

    Permalink
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. def validate(input: Transaction): Unit

    Permalink
    Definition Classes
    TransactionBtcSerializer
  38. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def write(tx: Transaction, out: OutputStream, protocolVersion: Long): Unit

    Permalink

    write a message to a stream

    write a message to a stream

    out

    output stream

    Definition Classes
    TransactionBtcSerializer
  42. def write(t: Transaction): BinaryData

    Permalink
    Definition Classes
    BtcSerializer
  43. def write(t: Transaction, protocolVersion: Long): BinaryData

    Permalink

    write a message to a byte array

    write a message to a byte array

    t

    message

    returns

    a serialized message

    Definition Classes
    BtcSerializer
  44. def write(t: Transaction, out: OutputStream): Unit

    Permalink
    Definition Classes
    BtcSerializer

Inherited from Serializable

Inherited from Serializable

Inherited from BtcSerializer[Transaction]

Inherited from AnyRef

Inherited from Any

Ungrouped