BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::protocol::sign_state Struct Reference

Public Member Functions

bool signed_by (const public_key_type &k)
 
bool signed_by (const address &a)
 
bool check_authority (account_id_type id)
 
bool check_authority (const authority *au, uint32_t depth=0)
 
bool remove_unused_signatures ()
 
 sign_state (const flat_set< public_key_type > &sigs, const std::function< const authority *(account_id_type)> &active, const std::function< const authority *(account_id_type)> &owner, bool allow_owner, uint32_t max_recursion_depth=GRAPHENE_MAX_SIG_CHECK_DEPTH, const flat_set< public_key_type > &keys=empty_keyset)
 

Public Attributes

optional< map< address, public_key_type > > available_address_sigs
 
optional< map< address, public_key_type > > provided_address_sigs
 
const std::function< const authority *(account_id_type)> & get_active
 
const std::function< const authority *(account_id_type)> & get_owner
 
const bool allow_non_immediate_owner
 
const uint32_t max_recursion
 
const flat_set< public_key_type > & available_keys
 
flat_map< public_key_type, bool > provided_signatures
 
flat_set< account_id_type > approved_by
 

Detailed Description

Definition at line 117 of file transaction.cpp.

Constructor & Destructor Documentation

graphene::protocol::sign_state::sign_state ( const flat_set< public_key_type > &  sigs,
const std::function< const authority *(account_id_type)> &  active,
const std::function< const authority *(account_id_type)> &  owner,
bool  allow_owner,
uint32_t  max_recursion_depth = GRAPHENE_MAX_SIG_CHECK_DEPTH,
const flat_set< public_key_type > &  keys = empty_keyset 
)
inline

Definition at line 240 of file transaction.cpp.

Member Function Documentation

bool graphene::protocol::sign_state::check_authority ( account_id_type  id)
inline

Definition at line 171 of file transaction.cpp.

bool graphene::protocol::sign_state::check_authority ( const authority au,
uint32_t  depth = 0 
)
inline

Checks to see if we have signatures of the active authorites of the accounts specified in authority or the keys specified.

Definition at line 181 of file transaction.cpp.

bool graphene::protocol::sign_state::remove_unused_signatures ( )
inline

Definition at line 228 of file transaction.cpp.

bool graphene::protocol::sign_state::signed_by ( const public_key_type k)
inline

returns true if we have a signature for this key or can produce a signature for this key, else returns false.

Definition at line 122 of file transaction.cpp.

bool graphene::protocol::sign_state::signed_by ( const address a)
inline

Definition at line 138 of file transaction.cpp.

Member Data Documentation

const bool graphene::protocol::sign_state::allow_non_immediate_owner

Definition at line 260 of file transaction.cpp.

flat_set<account_id_type> graphene::protocol::sign_state::approved_by

Definition at line 265 of file transaction.cpp.

optional<map<address,public_key_type> > graphene::protocol::sign_state::available_address_sigs

Definition at line 135 of file transaction.cpp.

const flat_set<public_key_type>& graphene::protocol::sign_state::available_keys

Definition at line 262 of file transaction.cpp.

const std::function<const authority*(account_id_type)>& graphene::protocol::sign_state::get_active

Definition at line 257 of file transaction.cpp.

const std::function<const authority*(account_id_type)>& graphene::protocol::sign_state::get_owner

Definition at line 258 of file transaction.cpp.

const uint32_t graphene::protocol::sign_state::max_recursion

Definition at line 261 of file transaction.cpp.

optional<map<address,public_key_type> > graphene::protocol::sign_state::provided_address_sigs

Definition at line 136 of file transaction.cpp.

flat_map<public_key_type,bool> graphene::protocol::sign_state::provided_signatures

Definition at line 264 of file transaction.cpp.


The documentation for this struct was generated from the following file: