Class/Object

org.bitcoins.core.psbt

PSBT

Related Docs: object PSBT | package psbt

Permalink

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

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

Instance Constructors

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

    Permalink

Value Members

  1. def !=(p: PSBT): Boolean

    Permalink
  2. final def !=(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def ==(p: PSBT): Boolean

    Permalink
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def addKeyPathToInput(extKey: ExtKey, path: BIP32Path, index: Int): PSBT

    Permalink

    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, index: Int): PSBT

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink
  11. def addScriptWitnessToOutput(scriptWitness: ScriptWitness, index: Int): PSBT

    Permalink
  12. def addSigHashTypeToInput(hashType: HashType, index: Int): PSBT

    Permalink

    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, inputIndex: Int): PSBT

    Permalink
  14. def addSignature(pubKey: ECPublicKey, sig: ECDigitalSignature, inputIndex: Int): PSBT

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

    Permalink

    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

  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. val base64: String

    Permalink
  18. def byteSize: Long

    Permalink

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  19. val bytes: ByteVector

    Permalink

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    PSBTNetworkElement
  20. def bytesLE: ByteVector

    Permalink

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  21. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def combinePSBT(other: PSBT): PSBT

    Permalink

    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

  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def extractTransaction: Transaction

    Permalink

  25. def extractTransactionAndValidate: Try[Transaction]

    Permalink

    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.

  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def finalizePSBT: Try[PSBT]

    Permalink

    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

  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. def getUTXOSpendingInfoUsingSigners(index: Int, signers: Vector[Sign], conditionalPath: ConditionalPath = ConditionalPath.NoConditionsLeft): UTXOSpendingInfoFull

    Permalink

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

    Takes the InputPSBTMap at the given index and returns a UTXOSpendingInfoFull 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 UTXOSpendingInfoFull

  30. val globalMap: GlobalPSBTMap

    Permalink
  31. def hex: String

    Permalink

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  32. def hexLE: String

    Permalink

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  33. val inputMaps: Vector[InputPSBTMap]

    Permalink
  34. def isFinalized: Boolean

    Permalink
  35. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  36. def logger: Logger

    Permalink
    Definition Classes
    NetworkElement
  37. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  40. val outputMaps: Vector[OutputPSBTMap]

    Permalink
  41. def sign(inputIndex: Int, signer: Sign, conditionalPath: ConditionalPath = ConditionalPath.NoConditionsLeft, isDummySignature: Boolean = false)(implicit ec: ExecutionContext): Future[PSBT]

    Permalink

    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

    isDummySignature

    Do not sign the tx for real, just use a dummy signature, this is useful for fee estimation

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

    Permalink
    Definition Classes
    AnyRef
  43. def transaction: Transaction

    Permalink
  44. def version: UInt32

    Permalink
  45. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped