BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
graphene::protocol::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

graphene::protocol::memo_message::memo_message ( )
inline

Definition at line 77 of file memo.hpp.

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

Definition at line 78 of file memo.hpp.

Member Function Documentation

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

Definition at line 83 of file memo.cpp.

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

Definition at line 76 of file memo.cpp.

Member Data Documentation

uint32_t graphene::protocol::memo_message::checksum = 0

Definition at line 81 of file memo.hpp.

std::string graphene::protocol::memo_message::text

Definition at line 82 of file memo.hpp.


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