#include <authority.hpp>
Definition at line 203 of file authority.hpp.
◆ shared_authority()
Definition at line 204 of file authority.hpp.
shared_vector< permission_level_weight > accounts
shared_vector< wait_weight > waits
shared_vector< shared_key_weight > keys
◆ get_billable_size()
size_t sysio::chain::shared_authority::get_billable_size |
( |
| ) |
const |
|
inline |
< serialized size of the key
Definition at line 237 of file authority.hpp.
237 {
240 size_t keys_size = 0;
241 for (const auto& k: keys) {
244 }
245
246 return accounts_size + waits_size + keys_size;
247 }
size_t pack_size(const T &v)
constexpr uint64_t billable_size_v
◆ operator authority()
sysio::chain::shared_authority::operator authority |
( |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 207 of file authority.hpp.
207 {
209 keys.clear();
210 keys.reserve(
a.keys.size());
211 for(
const key_weight& k :
a.keys) {
213 }
216 return *this;
217 }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
static shared_key_weight convert(chainbase::allocator< char > allocator, const key_weight &k)
◆ to_authority()
authority sysio::chain::shared_authority::to_authority |
( |
| ) |
const |
|
inline |
Definition at line 225 of file authority.hpp.
225 {
226 authority auth;
228 auth.keys.reserve(keys.size());
229 auth.accounts.reserve(
accounts.size());
230 auth.waits.reserve(
waits.size());
231 for( const auto& k : keys ) { auth.keys.emplace_back( k ); }
232 for(
const auto&
a :
accounts ) { auth.accounts.emplace_back(
a ); }
233 for(
const auto& w :
waits ) { auth.waits.emplace_back( w ); }
234 return auth;
235 }
◆ accounts
◆ keys
◆ threshold
uint32_t sysio::chain::shared_authority::threshold = 0 |
◆ waits
The documentation for this struct was generated from the following file: