Scorum
|
#include <authority.hpp>
Public Types | |
enum | classification { owner = 0 , active = 1 , key = 2 , posting = 3 } |
typedef flat_map< public_key_type, authority_weight_type > | key_authority_map |
Public Member Functions | |
authority () | |
template<class... Args> | |
authority (uint32_t threshold, Args... auths) | |
void | add_authority (const public_key_type &k, authority_weight_type w) |
void | add_authority (const account_name_type &k, authority_weight_type w) |
template<typename AuthType > | |
void | add_authorities (AuthType k, authority_weight_type w) |
template<typename AuthType , class... Args> | |
void | add_authorities (AuthType k, authority_weight_type w, Args... auths) |
std::vector< public_key_type > | get_keys () const |
bool | is_impossible () const |
uint32_t | num_auths () const |
void | clear () |
void | validate () const |
Public Attributes | |
uint32_t | weight_threshold = 0 |
account_authority_map | account_auths |
key_authority_map | key_auths |
Definition at line 10 of file authority.hpp.
typedef flat_map<public_key_type, authority_weight_type> scorum::protocol::authority::key_authority_map |
Definition at line 52 of file authority.hpp.
Enumerator | |
---|---|
owner | |
active | |
key | |
posting |
Definition at line 16 of file authority.hpp.
|
inline |
Definition at line 12 of file authority.hpp.
|
inline |
Definition at line 25 of file authority.hpp.
|
inline |
Definition at line 34 of file authority.hpp.
|
inline |
Definition at line 39 of file authority.hpp.
void scorum::protocol::authority::add_authority | ( | const account_name_type & | k, |
authority_weight_type | w | ||
) |
Definition at line 15 of file authority.cpp.
void scorum::protocol::authority::add_authority | ( | const public_key_type & | k, |
authority_weight_type | w | ||
) |
Definition at line 10 of file authority.cpp.
void scorum::protocol::authority::clear | ( | ) |
Definition at line 44 of file authority.cpp.
std::vector< public_key_type > scorum::protocol::authority::get_keys | ( | ) | const |
Definition at line 20 of file authority.cpp.
bool scorum::protocol::authority::is_impossible | ( | ) | const |
Definition at line 29 of file authority.cpp.
uint32_t scorum::protocol::authority::num_auths | ( | ) | const |
Definition at line 39 of file authority.cpp.
void scorum::protocol::authority::validate | ( | ) | const |
Definition at line 50 of file authority.cpp.
account_authority_map scorum::protocol::authority::account_auths |
Definition at line 55 of file authority.hpp.
key_authority_map scorum::protocol::authority::key_auths |
Definition at line 56 of file authority.hpp.
uint32_t scorum::protocol::authority::weight_threshold = 0 |
Definition at line 54 of file authority.hpp.