plebble
us::gov::cash::tx Class Referencefinal

#include <tx.h>

Inheritance diagram for us::gov::cash::tx:
Collaboration diagram for us::gov::cash::tx:

Classes

struct  input_t
 
struct  inputs_t
 
struct  output_t
 
struct  outputs_t
 
struct  section_t
 
struct  sections_t
 
struct  sigcode_section_t
 
class  sigcode_t
 

Public Types

enum  sigcode_t { sigcode_t.sigcode_all = 0, sigcode_t.sigcode_none = 1, sigcode_t.sigcode_this = 2, sigcode_t.num_sigcodes = 3 }
 
typedef engine::evidence b
 
typedef int64_t cash_t
 
- Public Types inherited from us::gov::relay::evidence
typedef crypto::ripemd160 hasher_t
 
typedef hasher_t::value_type hash_t
 

Public Member Functions

 tx ()
 
 ~tx () override
 
sigcode_t get_sigcode_all () const
 
string to_b58 () const
 
sigcode_t make_sigcode_all () const
 
hash_t compute_hash () const override
 
string name () const override
 
bool check_amounts () const
 
ec::sigmsg_hasher_t::value_type get_hash (const sigcode_t &) const
 
void to_stream (ostream &) const
 
void write_sigmsg (ec::sigmsg_hasher_t &, const sigcode_t &sh) const
 
void write_pretty (ostream &) const override
 
datagramget_datagram (uint16_t seq) const
 
void dump (const string &prefix, ostream &) const
 
bool verify (ostream &os) const override
 
section_tadd_section (const hash_t &token)
 
- Public Member Functions inherited from us::gov::relay::evidence
 evidence (int app, uint8_t eid)
 
 evidence (const evidence &)=delete
 
virtual ~evidence ()
 
virtual void hash_data_to_sign (crypto::ec::sigmsg_hasher_t &h) const
 
virtual void hash_data (hasher_t &h) const
 
void update_ts (const uint64_t &nsecs_in_future=0)
 

Static Public Member Functions

static pair< ko, tx * > from_stream (istream &)
 
static pair< ko, tx * > from_b58 (const string &)
 
- Static Public Member Functions inherited from us::gov::relay::evidence
static evidencefrom_stream (istream &)
 
static evidencefrom_stream (int appid, uint8_t evid, istream &is)
 
static evidencefrom_b58 (const string &b58)
 
static string formatts (uint64_t ts)
 
static void from_stream (evidence &, istream &is)
 
static pair< int, uint8_t > extract_instance_id (istream &is)
 

Public Attributes

sections_t sections
 
String[] sigcodestr = {"all","none","this"}
 
- Public Attributes inherited from us::gov::relay::evidence
uint64_t ts
 
uint64_t expires
 
int app
 
uint8_t eid
 

Static Public Attributes

static constexpr uint16_t magic {200}
 

Member Typedef Documentation

◆ b

◆ cash_t

typedef int64_t us::gov::cash::tx::cash_t

Member Enumeration Documentation

◆ sigcode_t

Enumerator
sigcode_all 
sigcode_none 
sigcode_this 
num_sigcodes 

Constructor & Destructor Documentation

◆ tx()

us::gov::cash::tx::tx ( )

◆ ~tx()

us::gov::cash::tx::~tx ( )
inlineoverride

Member Function Documentation

◆ add_section()

section_t& us::gov::cash::tx::add_section ( const hash_t token)

◆ check_amounts()

bool us::gov::cash::tx::check_amounts ( ) const

◆ compute_hash()

hash_t us::gov::cash::tx::compute_hash ( ) const
overridevirtual

◆ dump()

void us::gov::cash::tx::dump ( const string &  prefix,
ostream &   
) const

◆ from_b58()

static pair<ko,tx*> us::gov::cash::tx::from_b58 ( const string &  )
static

◆ from_stream()

static pair<ko,tx*> us::gov::cash::tx::from_stream ( istream &  )
static

◆ get_datagram()

datagram* us::gov::cash::tx::get_datagram ( uint16_t  seq) const

◆ get_hash()

ec::sigmsg_hasher_t::value_type us::gov::cash::tx::get_hash ( const sigcode_t ) const

◆ get_sigcode_all()

sigcode_t us::gov::cash::tx::get_sigcode_all ( ) const

◆ make_sigcode_all()

sigcode_t us::gov::cash::tx::make_sigcode_all ( ) const

◆ name()

string us::gov::cash::tx::name ( ) const
inlineoverridevirtual

◆ to_b58()

string us::gov::cash::tx::to_b58 ( ) const

Referenced by us::gov::cash::operator<<().

Here is the caller graph for this function:

◆ to_stream()

void us::gov::cash::tx::to_stream ( ostream &  ) const
virtual

Reimplemented from us::gov::relay::evidence.

◆ verify()

bool us::gov::cash::tx::verify ( ostream &  os) const
overridevirtual

Reimplemented from us::gov::relay::evidence.

◆ write_pretty()

void us::gov::cash::tx::write_pretty ( ostream &  ) const
overridevirtual

Reimplemented from us::gov::relay::evidence.

◆ write_sigmsg()

void us::gov::cash::tx::write_sigmsg ( ec::sigmsg_hasher_t ,
const sigcode_t sh 
) const

Member Data Documentation

◆ magic

constexpr uint16_t us::gov::cash::tx::magic {200}
staticconstexpr

◆ sections

sections_t us::gov::cash::tx::sections

◆ sigcodestr

String [] us.gov.cash.tx.sigcodestr = {"all","none","this"}

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