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

Function PSBTRoleName

src/psbt.cpp:780–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780std::string PSBTRoleName(PSBTRole role) {
781 switch (role) {
782 case PSBTRole::CREATOR: return "creator";
783 case PSBTRole::UPDATER: return "updater";
784 case PSBTRole::BLINDER: return "blinder";
785 case PSBTRole::SIGNER: return "signer";
786 case PSBTRole::FINALIZER: return "finalizer";
787 case PSBTRole::EXTRACTOR: return "extractor";
788 // no default case, so the compiler can warn about missing cases
789 }
790 assert(false);
791}
792
793std::string EncodePSBT(const PartiallySignedTransaction& psbt)
794{

Callers 2

FUZZ_TARGET_INITFunction · 0.85
analyzepsbtFunction · 0.85

Calls

no outgoing calls

Tested by 1

FUZZ_TARGET_INITFunction · 0.68