Enum psbt::construct::Error [−][src]
pub enum Error {
ResolvingTx(TxResolverError),
Derive(DeriveError),
OutputUnknown(Txid, u32),
ScriptPubkeyMismatch(Txid, u32, Script, Script),
Miniscript(Error),
Inflation {
input: u64,
output: u64,
},
}
Variants
ResolvingTx(TxResolverError)
Tuple Fields
unable to construct PSBT due to one of transaction inputs is not known
Derive(DeriveError)
Tuple Fields
0: DeriveError
unable to construct PSBT due to failing key derivetion derivation
OutputUnknown(Txid, u32)
unable to construct PSBT due to spent transaction {0} not having referenced output #{1}
ScriptPubkeyMismatch(Txid, u32, Script, Script)
derived scriptPubkey {3}
does not match transaction scriptPubkey
{2}
for {0}:{1}
Miniscript(Error)
Tuple Fields
0: Error
one of PSBT outputs has invalid script data
Inflation
Fields
input: u64
Amount spent: input amounts
output: u64
Amount sent: sum of output value + transaction fee
PSBT can’t be constructed according to the consensus rules since it spends more ({output} sats) than the sum of its input amounts ({input} sats)
Trait Implementations
Performs the conversion.
Performs the conversion.