22 std::vector<public_key_type>
result;
31 uint64_t auth_weights = 0;
33 auth_weights += item.second;
35 auth_weights += item.second;
60 #if SCORUM_MIN_ACCOUNT_NAME_LENGTH < 3
61 #error This is_valid_account_name implementation implicitly enforces minimum name length of 3.
64 const size_t len = name.size();
65 if (len < SCORUM_MIN_ACCOUNT_NAME_LENGTH)
68 if (len > SCORUM_MAX_ACCOUNT_NAME_LENGTH)
74 size_t end = name.find_first_of(
'.', begin);
75 if (end == std::string::npos)
80 if (!std::islower(name[begin]))
83 if (!std::islower(name[end - 1]) && !std::isdigit(name[end - 1]))
86 for (
size_t i = begin + 1; i < end - 1; ++i)
88 if (!std::islower(name[i]) && !std::isdigit(name[i]) && !(name[i] ==
'-'))
bool operator==(const authority &a, const authority &b)
fc::fixed_string_16 account_name_type
bool is_valid_account_name(const std::string &name)
uint16_t authority_weight_type
account_authority_map account_auths
uint32_t weight_threshold
uint32_t num_auths() const
bool is_impossible() const
key_authority_map key_auths
void add_authority(const public_key_type &k, authority_weight_type w)
std::vector< public_key_type > get_keys() const