|
| authority_checker (PermissionToAuthorityFunc permission_to_authority, uint16_t recursion_depth_limit, const flat_set< public_key_type > &provided_keys, const flat_set< permission_level > &provided_permissions, fc::microseconds provided_delay, const std::function< void()> &checktime) |
|
bool | satisfied (const permission_level &permission, fc::microseconds override_provided_delay, permission_cache_type *cached_perms=nullptr) |
|
bool | satisfied (const permission_level &permission, permission_cache_type *cached_perms=nullptr) |
|
template<typename AuthorityType > |
bool | satisfied (const AuthorityType &authority, fc::microseconds override_provided_delay, permission_cache_type *cached_perms=nullptr) |
|
template<typename AuthorityType > |
bool | satisfied (const AuthorityType &authority, permission_cache_type *cached_perms=nullptr) |
|
bool | all_keys_used () const |
|
flat_set< public_key_type > | used_keys () const |
|
flat_set< public_key_type > | unused_keys () const |
|
template<typename PermissionToAuthorityFunc>
class sysio::chain::authority_checker< PermissionToAuthorityFunc >
This class determines whether a set of signing keys are sufficient to satisfy an authority or not
To determine whether an authority is satisfied or not, we first determine which keys have approved of a message, and then determine whether that list of keys is sufficient to satisfy the authority. This class takes a list of keys and provides the satisfied method to determine whether that list of keys satisfies a provided authority.
- Template Parameters
-
F | A callable which takes a single argument of type AccountPermission and returns the corresponding authority |
Definition at line 35 of file authority_checker.hpp.