plebble
us::gov::relay::evidence Struct Referenceabstract

#include <evidence.h>

Inheritance diagram for us::gov::relay::evidence:

Public Types

typedef crypto::ripemd160 hasher_t
 
typedef hasher_t::value_type hash_t
 

Public Member Functions

 evidence (int app, uint8_t eid)
 
 evidence (const evidence &)=delete
 
virtual ~evidence ()
 
virtual hash_t compute_hash () const =0
 
virtual void hash_data_to_sign (crypto::ec::sigmsg_hasher_t &h) const
 
virtual void hash_data (hasher_t &h) const
 
virtual void to_stream (ostream &os) const
 
virtual string name () const =0
 
virtual bool verify (ostream &os) const
 
virtual void write_pretty (ostream &) const
 
void update_ts (const uint64_t &nsecs_in_future=0)
 

Static Public Member Functions

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

uint64_t ts
 
uint64_t expires
 
int app
 
uint8_t eid
 

Member Typedef Documentation

◆ hash_t

◆ hasher_t

Constructor & Destructor Documentation

◆ evidence() [1/2]

us::gov::relay::evidence::evidence ( int  app,
uint8_t  eid 
)

◆ evidence() [2/2]

us::gov::relay::evidence::evidence ( const evidence )
delete

◆ ~evidence()

virtual us::gov::relay::evidence::~evidence ( )
virtual

Member Function Documentation

◆ compute_hash()

virtual hash_t us::gov::relay::evidence::compute_hash ( ) const
pure virtual

◆ extract_instance_id()

static pair<int,uint8_t> us::gov::relay::evidence::extract_instance_id ( istream &  is)
static

◆ formatts()

static string us::gov::relay::evidence::formatts ( uint64_t  ts)
static

◆ from_b58()

static evidence* us::gov::relay::evidence::from_b58 ( const string &  b58)
static

◆ from_stream() [1/3]

static void us::gov::relay::evidence::from_stream ( evidence ,
istream &  is 
)
static

◆ from_stream() [2/3]

static evidence* us::gov::relay::evidence::from_stream ( int  appid,
uint8_t  evid,
istream &  is 
)
static

◆ from_stream() [3/3]

static evidence* us::gov::relay::evidence::from_stream ( istream &  )
static

◆ hash_data()

virtual void us::gov::relay::evidence::hash_data ( hasher_t h) const
virtual

◆ hash_data_to_sign()

virtual void us::gov::relay::evidence::hash_data_to_sign ( crypto::ec::sigmsg_hasher_t h) const
virtual

◆ name()

◆ to_stream()

virtual void us::gov::relay::evidence::to_stream ( ostream &  os) const
virtual

◆ update_ts()

void us::gov::relay::evidence::update_ts ( const uint64_t &  nsecs_in_future = 0)

◆ verify()

virtual bool us::gov::relay::evidence::verify ( ostream &  os) const
virtual

◆ write_pretty()

Member Data Documentation

◆ app

int us::gov::relay::evidence::app

◆ eid

uint8_t us::gov::relay::evidence::eid

◆ expires

uint64_t us::gov::relay::evidence::expires

◆ ts

uint64_t us::gov::relay::evidence::ts

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