weighted_basic_policy.hpp
Go to the documentation of this file.
61 static inline typename base_type::indexes_type get_indexes(const weights_type &weights, std::size_t t) {
boost::mpl::apply< AccumulatorSet, tag::pubkey< ProcessingMode > >::type::result_type pubkey(const AccumulatorSet &acc)
Definition: accumulators/pubkey.hpp:106
Definition: pair.hpp:31
Definition: pubkey/include/nil/crypto3/pubkey/secret_sharing/basic_policy.hpp:43
static indexes_type get_indexes(IndexedElementIt first, IndexedElementIt last)
Definition: pubkey/include/nil/crypto3/pubkey/secret_sharing/basic_policy.hpp:95
static bool check_participant_index(std::size_t i)
Definition: pubkey/include/nil/crypto3/pubkey/secret_sharing/basic_policy.hpp:72
std::set< std::size_t > indexes_type
Definition: pubkey/include/nil/crypto3/pubkey/secret_sharing/basic_policy.hpp:57
Definition: weighted_basic_policy.hpp:37
static base_type::indexes_type get_indexes(const weights_type &weights, std::size_t t)
Definition: weighted_basic_policy.hpp:61
static std::enable_if< std::is_unsigned< typename Weight::first_type >::value &&std::is_unsigned< typename Weight::second_type >::value, bool >::type check_weight(const Weight &w)
Definition: weighted_basic_policy.hpp:51
std::map< std::size_t, std::size_t > weights_type
Definition: weighted_basic_policy.hpp:45
sss_basic_policy< Group > base_type
Definition: weighted_basic_policy.hpp:39
static bool check_weight(std::size_t i, std::size_t w)
Definition: weighted_basic_policy.hpp:55