case class PSBT(globalMap: GlobalPSBTMap, inputMaps: Vector[InputPSBTMap], outputMaps: Vector[OutputPSBTMap]) extends NetworkElement with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PSBT
  2. Serializable
  3. Product
  4. Equals
  5. NetworkElement
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PSBT(globalMap: GlobalPSBTMap, inputMaps: Vector[InputPSBTMap], outputMaps: Vector[OutputPSBTMap])

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. def addFinalizedScriptWitnessToInput(scriptSignature: ScriptSignature, scriptWitness: ScriptWitness, index: Int): PSBT
  5. def addKeyPathSignature(partialSignature: PartialSignature[SchnorrDigitalSignature], inputIndex: Int): PSBT
  6. def addKeyPathToInput(extKey: ExtKey, path: BIP32Path, pubKey: ECPublicKey, index: Int): PSBT

    Adds the BIP32Path to the indexed InputPSBTMap to the BIP32DerivationPath field

    Adds the BIP32Path to the indexed InputPSBTMap to the BIP32DerivationPath field

    extKey

    ExtKey to derive key from

    path

    path of key to add to PSBT

    index

    index of the InputPSBTMap to add the BIP32Path to

    returns

    PSBT with added BIP32Path

  7. def addKeyPathToOutput(extKey: ExtKey, path: BIP32Path, pubKey: ECPublicKey, index: Int): PSBT

    Adds the BIP32Path to the indexed OutputPSBTMap to the BIP32DerivationPath field

    Adds the BIP32Path to the indexed OutputPSBTMap to the BIP32DerivationPath field

    extKey

    ExtKey to derive key from

    path

    path of key to add to PSBT

    index

    index of the OutputPSBTMap to add the BIP32Path to

    returns

    PSBT with added BIP32Path

  8. def addRedeemOrWitnessScriptToInput(script: ScriptPubKey, index: Int): PSBT

    Adds script to the indexed InputPSBTMap to either the RedeemScript or WitnessScript field depending on the script and available information in the PSBT

    Adds script to the indexed InputPSBTMap to either the RedeemScript or WitnessScript field depending on the script and available information in the PSBT

    script

    ScriptPubKey to add to PSBT

    index

    index of the InputPSBTMap to add script to

    returns

    PSBT with added script

  9. def addRedeemOrWitnessScriptToOutput(script: ScriptPubKey, index: Int): PSBT

    Adds script to the indexed OutputPSBTMap to either the RedeemScript or WitnessScript field depending on the script and available information in the PSBT

    Adds script to the indexed OutputPSBTMap to either the RedeemScript or WitnessScript field depending on the script and available information in the PSBT

    script

    ScriptPubKey to add to PSBT

    index

    index of the OutputPSBTMap to add script to

    returns

    PSBT with added script

  10. def addScriptWitnessToInput(scriptWitness: ScriptWitness, index: Int): PSBT
  11. def addScriptWitnessToOutput(scriptWitness: ScriptWitness, index: Int): PSBT
  12. def addSigHashTypeToInput(hashType: HashType, index: Int): PSBT

    hashType

    HashType to add to the input

    index

    index of the InputPSBTMap to add the HashType to

    returns

    PSBT with added HashType

  13. def addSignature(partialSignature: PartialSignature[ECDigitalSignature], inputIndex: Int): PSBT
  14. def addSignature(pubKey: ECPublicKey, sig: ECDigitalSignature, inputIndex: Int): PSBT
  15. def addSignatures(partialSignatures: Vector[PartialSignature[ECDigitalSignature]], inputIndex: Int): PSBT

    Adds all the PartialSignatures to the input map at the given index

  16. def addUTXOToInput(tx: Transaction, index: Int): PSBT

    Adds tx to the indexed InputPSBTMap to either the NonWitnessOrUnknownUTXO or WitnessUTXO field depending on the tx and available information in the PSBT

    Adds tx to the indexed InputPSBTMap to either the NonWitnessOrUnknownUTXO or WitnessUTXO field depending on the tx and available information in the PSBT

    tx

    Transaction to add to PSBT

    index

    index of the InputPSBTMap to add tx to

    returns

    PSBT with added tx

  17. def addWitnessUTXOToInput(output: TransactionOutput, index: Int): PSBT

    Adds the TransactionOutput to the indexed InputPSBTMap to the WitnessUTXO field

    Adds the TransactionOutput to the indexed InputPSBTMap to the WitnessUTXO field

    output

    TransactionOutput to add to PSBT

    index

    index of the InputPSBTMap to add tx to

    returns

    PSBT with added tx

  18. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  19. val base64: String
  20. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  21. val bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    PSBTNetworkElement
  22. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  23. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  24. def combinePSBT(other: PSBT): PSBT

    Combiner defined by https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#combiner Takes another PSBT and adds all records that are not contained in this PSBT A record's distinctness is determined by its key

    Combiner defined by https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#combiner Takes another PSBT and adds all records that are not contained in this PSBT A record's distinctness is determined by its key

    other

    PSBT to be combined with

    returns

    A PSBT with the combined data of the two PSBTs

  25. def combinePSBTAndValidate(other: PSBT): PSBT
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(other: Any): Boolean
    Definition Classes
    PSBT → Equals → AnyRef → Any
  28. lazy val estimateSatsPerVByte: Option[SatoshisPerVirtualByte]
  29. lazy val estimateVSize: Option[Long]
  30. lazy val estimateWeight: Option[Long]
  31. def extractTransaction: Transaction

  32. def extractTransactionAndValidate: Try[Transaction]

    Extracts the serialized from the serialized, fully signed transaction from this PSBT and validates the script signatures using the ScriptInterpreter.

    Extracts the serialized from the serialized, fully signed transaction from this PSBT and validates the script signatures using the ScriptInterpreter. Only inputs for which UTXO records are present get validated.

    Note: This PSBT must be finalized.

  33. lazy val feeOpt: Option[CurrencyUnit]
  34. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  35. def finalizeInput(index: Int): Try[PSBT]
  36. def finalizePSBT: Try[PSBT]

    Finalizes this PSBT if possible, returns a Failure otherwise

    Finalizes this PSBT if possible, returns a Failure otherwise

    See also

    https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#input-finalizer

  37. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. def getPrevOutputMap(): PreviousOutputMap
  39. def getSpendingInfoUsingSigners(index: Int, signers: Vector[Sign], conditionalPath: ConditionalPath = ConditionalPath.NoCondition): ScriptSignatureParams[InputInfo]

    Takes the InputPSBTMap at the given index and returns a NewSpendingInfoFull that can be used to sign the input

    Takes the InputPSBTMap at the given index and returns a NewSpendingInfoFull that can be used to sign the input

    index

    index of the InputPSBTMap

    signers

    Signers that will be used to sign the input

    conditionalPath

    Path that should be used for the script

    returns

    A corresponding NewSpendingInfoFull

  40. val globalMap: GlobalPSBTMap
  41. def hex: String

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  42. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  43. val inputMaps: Vector[InputPSBTMap]
  44. def isFinalized: Boolean
  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. lazy val nextRole: PSBTRole

    The next PSBTRole that should be used for this PSBT

  48. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. val outputMaps: Vector[OutputPSBTMap]
  51. def productElementNames: Iterator[String]
    Definition Classes
    Product
  52. def sign(inputIndex: Int, signer: Sign, conditionalPath: ConditionalPath = ConditionalPath.NoCondition): PSBT

    Signs the PSBT's input at the given input with the signer, then adds it to the PSBT in a PartialSignature record

    Signs the PSBT's input at the given input with the signer, then adds it to the PSBT in a PartialSignature record

    inputIndex

    Index of input to sign

    signer

    Function or private key used to sign the PSBT

    conditionalPath

    Represents the spending branch being taken in a ScriptPubKey's execution

  53. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  54. def transaction: Transaction
  55. def validateBIP143Vulnerability: PSBT
  56. def verifyFinalizedInput(index: Int): Boolean
  57. def version: UInt32
  58. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. 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 NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped