Object/Class

com.alexdupre.litecoin

Transaction

Related Docs: class Transaction | package litecoin

Permalink

object Transaction extends LtcSerializer[Transaction] with Serializable

Linear Supertypes
Serializable, Serializable, LtcSerializer[Transaction], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Transaction
  2. Serializable
  3. Serializable
  4. LtcSerializer
  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. val SERIALIZE_TRANSACTION_NO_WITNESS: Long

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def baseSize(tx: Transaction, protocolVersion: Long = PROTOCOL_VERSION): Int

    Permalink
  8. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashForSigning(tx: Transaction, inputIndex: Int, previousOutputScript: Seq[ScriptElt], sighashType: Int, amount: Satoshi, signatureVersion: 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

  19. def hashForSigning(tx: Transaction, inputIndex: Int, previousOutputScript: BinaryData, sighashType: Int, amount: Satoshi, signatureVersion: 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

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

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

  22. def isCoinbase(input: Transaction): Boolean

    Permalink
  23. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. 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

  28. 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
    TransactionLtcSerializer
  29. def read(in: String): Transaction

    Permalink
    Definition Classes
    LtcSerializer
  30. 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
    LtcSerializer
  31. def read(in: Seq[Byte]): Transaction

    Permalink
    Definition Classes
    LtcSerializer
  32. 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
    LtcSerializer
  33. def read(in: InputStream): Transaction

    Permalink
    Definition Classes
    LtcSerializer
  34. def serializeTxWitness(version: Long): Boolean

    Permalink

    version

    protocol version (and NOT transaction version !)

    returns

    true if protocol version specifies that witness data is to be serialized

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

  36. def signInput(tx: Transaction, inputIndex: Int, previousOutputScript: Seq[ScriptElt], sighashType: Int, amount: Satoshi, signatureVersion: Int, 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

    signatureVersion

    signature version (1: segwit, 0: pre-segwit)

    privateKey

    private key

    returns

    the encoded signature of this tx for this specific tx input

  37. def signInput(tx: Transaction, inputIndex: Int, previousOutputScript: BinaryData, sighashType: Int, amount: Satoshi, signatureVersion: Int, 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

    signatureVersion

    signature version (1: segwit, 0: pre-segwit)

    privateKey

    private key

    returns

    the encoded signature of this tx for this specific tx input

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  40. def totalSize(tx: Transaction, protocolVersion: Long = PROTOCOL_VERSION): Int

    Permalink
  41. def validate(input: Transaction): Unit

    Permalink
    Definition Classes
    TransactionLtcSerializer
  42. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def weight(tx: Transaction, protocolVersion: Long = PROTOCOL_VERSION): Int

    Permalink
  46. 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
    TransactionLtcSerializer
  47. def write(t: Transaction): BinaryData

    Permalink
    Definition Classes
    LtcSerializer
  48. 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
    LtcSerializer
  49. def write(t: Transaction, out: OutputStream): Unit

    Permalink
    Definition Classes
    LtcSerializer

Inherited from Serializable

Inherited from Serializable

Inherited from LtcSerializer[Transaction]

Inherited from AnyRef

Inherited from Any

Ungrouped