An (unencrypted) message, constructed from the combination of an Envelope, and, potentially, a Secret key to decrypt the Message.
More...
#include <Message.h>
|
| Message () |
|
| Message (Envelope const &_e, Topics const &_t, Secret const &_s=Secret()) |
|
| Message (bytes const &_payload) |
|
| Message (bytesConstRef _payload) |
|
| Message (bytes &&_payload) |
|
Public | from () const |
|
Public | to () const |
|
bytes const & | payload () const |
|
void | setFrom (Public _from) |
|
void | setTo (Public _to) |
|
void | setPayload (bytes const &_payload) |
|
void | setPayload (bytes &&_payload) |
|
| operator bool () const |
|
Envelope | seal (Secret const &_from, Topics const &_topics, unsigned _ttl=50, unsigned _workToProve=50) const |
| Turn this message into a ditributable Envelope. More...
|
|
Envelope | seal (Topics const &_topics, unsigned _ttl=50, unsigned _workToProve=50) const |
|
Envelope | sealTo (Public _to, Topics const &_topics, unsigned _ttl=50, unsigned _workToProve=50) |
|
Envelope | sealTo (Secret const &_from, Public _to, Topics const &_topics, unsigned _ttl=50, unsigned _workToProve=50) |
|
An (unencrypted) message, constructed from the combination of an Envelope, and, potentially, a Secret key to decrypt the Message.
Definition at line 100 of file Message.h.
dev::shh::Message::Message |
( |
| ) |
|
|
inline |
dev::shh::Message::Message |
( |
bytes const & |
_payload | ) |
|
|
inline |
dev::shh::Message::Message |
( |
bytes && |
_payload | ) |
|
|
inline |
Public dev::shh::Message::from |
( |
| ) |
const |
|
inline |
Secret dev::shh::Message::generateGamma |
( |
Secret const & |
_key, |
|
|
h256 const & |
_salt |
|
) |
| const |
|
inlineprivate |
dev::shh::Message::operator bool |
( |
| ) |
const |
|
inline |
bytes const& dev::shh::Message::payload |
( |
| ) |
const |
|
inline |
bool Message::populate |
( |
bytes const & |
_data | ) |
|
|
private |
Envelope Message::seal |
( |
Secret const & |
_from, |
|
|
Topics const & |
_topics, |
|
|
unsigned |
_ttl = 50 , |
|
|
unsigned |
_workToProve = 50 |
|
) |
| const |
Envelope dev::shh::Message::seal |
( |
Topics const & |
_topics, |
|
|
unsigned |
_ttl = 50 , |
|
|
unsigned |
_workToProve = 50 |
|
) |
| const |
|
inline |
Envelope dev::shh::Message::sealTo |
( |
Public |
_to, |
|
|
Topics const & |
_topics, |
|
|
unsigned |
_ttl = 50 , |
|
|
unsigned |
_workToProve = 50 |
|
) |
| |
|
inline |
Envelope dev::shh::Message::sealTo |
( |
Secret const & |
_from, |
|
|
Public |
_to, |
|
|
Topics const & |
_topics, |
|
|
unsigned |
_ttl = 50 , |
|
|
unsigned |
_workToProve = 50 |
|
) |
| |
|
inline |
void dev::shh::Message::setFrom |
( |
Public |
_from | ) |
|
|
inline |
void dev::shh::Message::setPayload |
( |
bytes const & |
_payload | ) |
|
|
inline |
void dev::shh::Message::setPayload |
( |
bytes && |
_payload | ) |
|
|
inline |
void dev::shh::Message::setTo |
( |
Public |
_to | ) |
|
|
inline |
Public dev::shh::Message::to |
( |
| ) |
const |
|
inline |
Public dev::shh::Message::m_from |
|
private |
bytes dev::shh::Message::m_payload |
|
private |
Public dev::shh::Message::m_to |
|
private |
The documentation for this class was generated from the following files: