Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
graphene::chain::memo_message Struct Reference

defines a message and checksum to enable validation of successful decryption More...

#include <memo.hpp>

Public Member Functions

 memo_message ()
 
 memo_message (uint32_t checksum, const std::string &text)
 
string serialize () const
 

Static Public Member Functions

static memo_message deserialize (const string &serial)
 

Public Attributes

uint32_t checksum = 0
 
std::string text
 

Detailed Description

defines a message and checksum to enable validation of successful decryption

When encrypting/decrypting a checksum is required to determine whether or not decryption was successful.

Definition at line 75 of file memo.hpp.

Constructor & Destructor Documentation

◆ memo_message() [1/2]

graphene::chain::memo_message::memo_message ( )
inline

Definition at line 77 of file memo.hpp.

◆ memo_message() [2/2]

graphene::chain::memo_message::memo_message ( uint32_t  checksum,
const std::string &  text 
)
inline

Definition at line 78 of file memo.hpp.

Member Function Documentation

◆ deserialize()

memo_message graphene::chain::memo_message::deserialize ( const string &  serial)
static

Definition at line 81 of file memo.cpp.

◆ serialize()

string graphene::chain::memo_message::serialize ( ) const

Definition at line 74 of file memo.cpp.

Member Data Documentation

◆ checksum

uint32_t graphene::chain::memo_message::checksum = 0

Definition at line 81 of file memo.hpp.

◆ text

std::string graphene::chain::memo_message::text

Definition at line 82 of file memo.hpp.


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