Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::signed_transaction Struct Reference

#include <transaction.hpp>

Inheritance diagram for sysio::chain::signed_transaction:
Collaboration diagram for sysio::chain::signed_transaction:

Public Member Functions

 signed_transaction ()=default
 
 signed_transaction (transaction &&trx, const vector< signature_type > &signatures, const vector< bytes > &context_free_data)
 
 signed_transaction (transaction &&trx, const vector< signature_type > &signatures, vector< bytes > &&context_free_data)
 
const signature_typesign (const private_key_type &key, const chain_id_type &chain_id)
 
signature_type sign (const private_key_type &key, const chain_id_type &chain_id) const
 
fc::microseconds get_signature_keys (const chain_id_type &chain_id, fc::time_point deadline, flat_set< public_key_type > &recovered_pub_keys, bool allow_duplicate_keys=false) const
 
- Public Member Functions inherited from sysio::chain::transaction
transaction_id_type id () const
 
digest_type sig_digest (const chain_id_type &chain_id, const vector< bytes > &cfd=vector< bytes >()) const
 
fc::microseconds get_signature_keys (const vector< signature_type > &signatures, const chain_id_type &chain_id, fc::time_point deadline, const vector< bytes > &cfd, flat_set< public_key_type > &recovered_pub_keys, bool allow_duplicate_keys=false) const
 
uint32_t total_actions () const
 
account_name first_authorizer () const
 
flat_multimap< uint16_t, transaction_extensionvalidate_and_extract_extensions () const
 
- Public Member Functions inherited from sysio::chain::transaction_header
block_num_type get_ref_blocknum (block_num_type head_blocknum) const
 number of seconds to delay this transaction for during which it may be canceled.
 
void set_reference_block (const block_id_type &reference_block)
 
bool verify_reference_block (const block_id_type &reference_block) const
 
void validate () const
 

Public Attributes

vector< signature_typesignatures
 
vector< bytescontext_free_data
 for each context-free action, there is an entry here
 
- Public Attributes inherited from sysio::chain::transaction
vector< actioncontext_free_actions
 
vector< actionactions
 
extensions_type transaction_extensions
 
- Public Attributes inherited from sysio::chain::transaction_header
time_point_sec expiration
 the time at which a transaction expires
 
uint16_t ref_block_num = 0U
 specifies a block num in the last 2^16 blocks.
 
uint32_t ref_block_prefix = 0UL
 specifies the lower 32 bits of the blockid at get_ref_blocknum
 
fc::unsigned_int max_net_usage_words = 0UL
 
uint8_t max_cpu_usage_ms = 0
 upper limit on total network bandwidth (in 8 byte words) billed for this transaction
 
fc::unsigned_int delay_sec = 0UL
 upper limit on the total CPU time billed for this transaction
 

Detailed Description

Definition at line 110 of file transaction.hpp.

Constructor & Destructor Documentation

◆ signed_transaction() [1/3]

sysio::chain::signed_transaction::signed_transaction ( )
default

◆ signed_transaction() [2/3]

sysio::chain::signed_transaction::signed_transaction ( transaction && trx,
const vector< signature_type > & signatures,
const vector< bytes > & context_free_data )
inline

Definition at line 115 of file transaction.hpp.

116 : transaction(std::move(trx))
117 , signatures(signatures)
119 {}
vector< bytes > context_free_data
for each context-free action, there is an entry here
vector< signature_type > signatures

◆ signed_transaction() [3/3]

sysio::chain::signed_transaction::signed_transaction ( transaction && trx,
const vector< signature_type > & signatures,
vector< bytes > && context_free_data )
inline

Definition at line 120 of file transaction.hpp.

121 : transaction(std::move(trx))
122 , signatures(signatures)
124 {}

Member Function Documentation

◆ get_signature_keys()

fc::microseconds sysio::chain::signed_transaction::get_signature_keys ( const chain_id_type & chain_id,
fc::time_point deadline,
flat_set< public_key_type > & recovered_pub_keys,
bool allow_duplicate_keys = false ) const

Definition at line 129 of file transaction.cpp.

132{
133 return transaction::get_signature_keys(signatures, chain_id, deadline, context_free_data, recovered_pub_keys, allow_duplicate_keys);
134}
fc::microseconds get_signature_keys(const vector< signature_type > &signatures, const chain_id_type &chain_id, fc::time_point deadline, const vector< bytes > &cfd, flat_set< public_key_type > &recovered_pub_keys, bool allow_duplicate_keys=false) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sign() [1/2]

const signature_type & sysio::chain::signed_transaction::sign ( const private_key_type & key,
const chain_id_type & chain_id )

Definition at line 119 of file transaction.cpp.

119 {
120 signatures.push_back(key.sign(sig_digest(chain_id, context_free_data)));
121 return signatures.back();
122}
digest_type sig_digest(const chain_id_type &chain_id, const vector< bytes > &cfd=vector< bytes >()) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sign() [2/2]

signature_type sysio::chain::signed_transaction::sign ( const private_key_type & key,
const chain_id_type & chain_id ) const

Definition at line 124 of file transaction.cpp.

124 {
125 return key.sign(sig_digest(chain_id, context_free_data));
126}
Here is the call graph for this function:

Member Data Documentation

◆ context_free_data

vector<bytes> sysio::chain::signed_transaction::context_free_data

Definition at line 127 of file transaction.hpp.

◆ signatures

vector<signature_type> sysio::chain::signed_transaction::signatures

Definition at line 126 of file transaction.hpp.


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