MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetTxOut

Method GetTxOut

src/psbt.cpp:548–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548CTxOut PSBTOutput::GetTxOut() const
549{
550 assert(script != std::nullopt);
551 assert(amount != std::nullopt || !m_value_commitment.IsNull());
552 assert(!m_asset.IsNull() || !m_asset_commitment.IsNull());
553 return CTxOut(!m_asset_commitment.IsNull() ? m_asset_commitment : CAsset(m_asset), !m_value_commitment.IsNull() ? m_value_commitment : CConfidentialValue(*amount), *script);
554}
555
556bool PSBTOutput::IsBlinded() const
557{

Callers 1

AnalyzePSBTFunction · 0.80

Calls 4

CAssetClass · 0.85
CConfidentialValueClass · 0.85
CTxOutClass · 0.50
IsNullMethod · 0.45

Tested by

no test coverage detected