| 45 | }; |
| 46 | |
| 47 | static void MakeNewKeyWithFastRandomContext(CKey &key, |
| 48 | FastRandomContext &rand_ctx) { |
| 49 | std::vector<uint8_t> keydata; |
| 50 | keydata = rand_ctx.randbytes(32); |
| 51 | key.Set(keydata.data(), keydata.data() + keydata.size(), |
| 52 | /*fCompressedIn=*/true); |
| 53 | assert(key.IsValid()); |
| 54 | } |
| 55 | |
| 56 | // Creates a transaction with 2 outputs. Spends all outpoints. If outpoints is |
| 57 | // empty, spends a random one. |
no test coverage detected