| 352 | } |
| 353 | |
| 354 | CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey>& keys) |
| 355 | { |
| 356 | CScript script; |
| 357 | |
| 358 | script << nRequired; |
| 359 | for (const CPubKey& key : keys) |
| 360 | script << ToByteVector(key); |
| 361 | script << keys.size() << OP_CHECKMULTISIG; |
| 362 | |
| 363 | return script; |
| 364 | } |
| 365 | |
| 366 | bool IsValidDestination(const CTxDestination& dest) { |
| 367 | return dest.index() != 0; |