BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ memo_message() [1/2]

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

Definition at line 77 of file memo.hpp.

◆ memo_message() [2/2]

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

◆ deserialize()

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

Definition at line 86 of file memo.cpp.

◆ serialize()

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

Definition at line 79 of file memo.cpp.

Member Data Documentation

◆ checksum

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

Definition at line 81 of file memo.hpp.

◆ text

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: