- Companion:
- class
- Source:
- Transaction.scala
Type members
Inherited types
The names of the product elements
The names of the product elements
- Inherited from:
- Mirror
- Source:
- Mirror.scala
Value members
Concrete methods
- Source:
- Transaction.scala
- Source:
- Transaction.scala
hash a tx for signing (pre-segwit)
hash a tx for signing (pre-segwit)
- Value parameters:
- 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
- tx
input transaction
- Returns:
a hash which can be used to sign the referenced tx input
- Source:
- Transaction.scala
hash a tx for signing (pre-segwit)
hash a tx for signing (pre-segwit)
- Value parameters:
- 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
- tx
input transaction
- Returns:
a hash which can be used to sign the referenced tx input
- Source:
- Transaction.scala
hash a tx for signing
hash a tx for signing
- Value parameters:
- amount
amount of the output claimed by this input
- 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
- tx
input transaction
- Returns:
a hash which can be used to sign the referenced tx input
- Source:
- Transaction.scala
hash a tx for signing
hash a tx for signing
- Value parameters:
- amount
amount of the output claimed by this input
- 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
- tx
input transaction
- Returns:
a hash which can be used to sign the referenced tx input
- Source:
- Transaction.scala
prepare a transaction for signing a specific input
prepare a transaction for signing a specific input
- Value parameters:
- 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
- tx
input transaction
- Returns:
a new transaction with proper inputs and outputs according to SIGHASH_TYPE rules
- Source:
- Transaction.scala
- Value parameters:
- version
protocol version (and NOT transaction version !)
- Returns:
true if protocol version specifies that witness data is to be serialized
- Source:
- Transaction.scala
sign a tx input
sign a tx input
- Value parameters:
- amount
amount of the output claimed by this tx input
- inputIndex
index of the tx input that is being processed
- previousOutputScript
public key script of the output claimed by this tx input
- privateKey
private key
- sighashType
signature hash type, which will be appended to the signature
- signatureVersion
signature version (1: segwit, 0: pre-segwit)
- tx
input transaction
- Returns:
the encoded signature of this tx for this specific tx input
- Source:
- Transaction.scala
sign a tx input
sign a tx input
- Value parameters:
- amount
amount of the output claimed by this tx input
- inputIndex
index of the tx input that is being processed
- previousOutputScript
public key script of the output claimed by this tx input
- privateKey
private key
- sighashType
signature hash type, which will be appended to the signature
- signatureVersion
signature version (1: segwit, 0: pre-segwit)
- tx
input transaction
- Returns:
the encoded signature of this tx for this specific tx input
- Source:
- Transaction.scala
Inherited methods
read a message from a hex string
read a message from a hex string
- Value parameters:
- in
message binary data in hex format
- Returns:
a deserialized message of type T
- Inherited from:
- BtcSerializer
- Source:
- Protocol.scala
read a message from a byte array
read a message from a byte array
- Value parameters:
- in
serialized message
- Returns:
a deserialized message
- Inherited from:
- BtcSerializer
- Source:
- Protocol.scala
write a message to a byte array
write a message to a byte array
- Value parameters:
- t
message
- Returns:
a serialized message
- Inherited from:
- BtcSerializer
- Source:
- Protocol.scala