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

Method DisplayAddress

src/wallet/external_signer_scriptpubkeyman.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool ExternalSignerScriptPubKeyMan::DisplayAddress(const CScript scriptPubKey, const ExternalSigner &signer) const
53{
54 // TODO: avoid the need to infer a descriptor from inside a descriptor wallet
55 auto provider = GetSolvingProvider(scriptPubKey);
56 auto descriptor = InferDescriptor(scriptPubKey, *provider);
57
58 signer.DisplayAddress(descriptor->ToString());
59 // TODO inspect result
60 return true;
61}
62
63// If sign is true, transaction must previously have been filled
64TransactionError ExternalSignerScriptPubKeyMan::FillPSBT(PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type, bool sign, bool bip32derivs, int* n_signed, bool finalize) const

Callers

nothing calls this directly

Calls 2

InferDescriptorFunction · 0.85
ToStringMethod · 0.45

Tested by

no test coverage detected