// Copyright (c) 2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include #include #include #include #include /** Generates 1 to 20 keys for OP_CHECKMULTISIG */ rc::Gen> MultisigKeys() { return rc::gen::suchThat(rc::gen::arbitrary>(), [](const std::vector& keys) { return keys.size() >= 1 && keys.size() <= 15; }); };