Scorum
Functions
Authority

Authority. More...

Functions

std::string scorum::app::database_api::get_transaction_hex (const signed_transaction &trx) const
 Get a hexdump of the serialized binary form of a transaction. More...
 
std::set< public_key_typescorum::app::database_api::get_required_signatures (const signed_transaction &trx, const flat_set< public_key_type > &available_keys) const
 
std::set< public_key_typescorum::app::database_api::get_potential_signatures (const signed_transaction &trx) const
 
bool scorum::app::database_api::verify_authority (const signed_transaction &trx) const
 
bool scorum::app::database_api::verify_account_authority (const std::string &name_or_id, const flat_set< public_key_type > &signers) const
 

Detailed Description

Authority.

Function Documentation

◆ get_potential_signatures()

std::set< public_key_type > scorum::app::database_api::get_potential_signatures ( const signed_transaction trx) const

This method will return the set of all public keys that could possibly sign for a given transaction. This call can be used by wallets to filter their set of public keys to just the relevant subset prior to calling get_required_signatures to get the minimum subset.

Definition at line 796 of file database_api.cpp.

◆ get_required_signatures()

std::set< public_key_type > scorum::app::database_api::get_required_signatures ( const signed_transaction trx,
const flat_set< public_key_type > &  available_keys 
) const

This API will take a partially signed transaction and a set of public keys that the owner has the ability to sign for and return the minimal subset of public keys that should add signatures to the transaction.

Definition at line 769 of file database_api.cpp.

◆ get_transaction_hex()

std::string scorum::app::database_api::get_transaction_hex ( const signed_transaction trx) const

Get a hexdump of the serialized binary form of a transaction.

Definition at line 759 of file database_api.cpp.

◆ verify_account_authority()

bool scorum::app::database_api::verify_account_authority ( const std::string &  name_or_id,
const flat_set< public_key_type > &  signers 
) const

Definition at line 853 of file database_api.cpp.

◆ verify_authority()

bool scorum::app::database_api::verify_authority ( const signed_transaction trx) const
Returns
true of the trx has all of the required signatures, otherwise throws an exception

Definition at line 831 of file database_api.cpp.