plebble
|
#include <tx.h>
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 |
![]() | |
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 |
datagram * | get_datagram (uint16_t seq) const |
void | dump (const string &prefix, ostream &) const |
bool | verify (ostream &os) const override |
section_t & | add_section (const hash_t &token) |
![]() | |
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 evidence * | from_stream (istream &) |
static evidence * | from_stream (int appid, uint8_t evid, istream &is) |
static evidence * | from_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"} |
![]() | |
uint64_t | ts |
uint64_t | expires |
int | app |
uint8_t | eid |
Static Public Attributes | |
static constexpr uint16_t | magic {200} |
typedef engine::evidence us::gov::cash::tx::b |
typedef int64_t us::gov::cash::tx::cash_t |
|
strong |
us::gov::cash::tx::tx | ( | ) |
|
inlineoverride |
bool us::gov::cash::tx::check_amounts | ( | ) | const |
|
overridevirtual |
Implements us::gov::relay::evidence.
void us::gov::cash::tx::dump | ( | const string & | prefix, |
ostream & | |||
) | const |
datagram* us::gov::cash::tx::get_datagram | ( | uint16_t | seq | ) | const |
ec::sigmsg_hasher_t::value_type us::gov::cash::tx::get_hash | ( | const sigcode_t & | ) | const |
sigcode_t us::gov::cash::tx::get_sigcode_all | ( | ) | const |
sigcode_t us::gov::cash::tx::make_sigcode_all | ( | ) | const |
|
inlineoverridevirtual |
Implements us::gov::relay::evidence.
string us::gov::cash::tx::to_b58 | ( | ) | const |
|
virtual |
Reimplemented from us::gov::relay::evidence.
|
overridevirtual |
Reimplemented from us::gov::relay::evidence.
|
overridevirtual |
Reimplemented from us::gov::relay::evidence.
void us::gov::cash::tx::write_sigmsg | ( | ec::sigmsg_hasher_t & | , |
const sigcode_t & | sh | ||
) | const |
|
staticconstexpr |
sections_t us::gov::cash::tx::sections |
String [] us.gov.cash.tx.sigcodestr = {"all","none","this"} |