| 778 | } |
| 779 | |
| 780 | std::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 | |
| 793 | std::string EncodePSBT(const PartiallySignedTransaction& psbt) |
| 794 | { |
no outgoing calls