17 return itr->second =
true;
29 uint32_t total_weight = 0;
34 total_weight += k.second;
49 total_weight += a.second;
56 total_weight += a.second;
66 std::vector<public_key_type> remove_sigs;
69 remove_sigs.push_back(sig.first);
71 for (
auto& sig : remove_sigs)
74 return remove_sigs.size() != 0;
79 const flat_set<public_key_type>& keys)
81 , available_keys(keys)
83 for (
const auto& key : sigs)
std::function< authority(const std::string &)> authority_getter
account_authority_map account_auths
uint32_t weight_threshold
key_authority_map key_auths
bool check_authority(const std::string &id)
flat_set< std::string > approved_by
const authority_getter & get_active
bool remove_unused_signatures()
sign_state(const flat_set< public_key_type > &sigs, const authority_getter &a, const flat_set< public_key_type > &keys)
const flat_set< public_key_type > & available_keys
flat_map< public_key_type, bool > provided_signatures
bool signed_by(const public_key_type &k)