61 static const unsigned TopicBloomFilterSize = 64;
62 static const unsigned BitsPerBloom = 3;
63 static const unsigned WhisperProtocolVersion = 3;
98 using TopicMask = std::vector<std::pair<AbridgedTopic, AbridgedTopic>>;
112 bool matches(
Envelope const& _m)
const;
BuildTopicMask & shiftRaw(h256 const &_h)
TopicFilter(Topics const &_m)
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
BuildTopicMask(T const &_t)
void streamRLP(RLPStream &_s) const
std::vector< AbridgedTopic > AbridgedTopics
BuildTopic & shiftRaw(h256 const &_part)
BuildTopic & operator()(T const &_t)
BuildTopicMask & shift(T const &_r)
BuildTopicMask & operator()(T const &_t)
std::vector< TopicMask > TopicMasks
std::vector< byte > bytes
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
TopicFilter(TopicMask const &_m)
TopicFilter(TopicMasks const &_m)
BuildTopic & shiftBytes(bytes const &_b)
AbridgedTopic abridge(Topic const &_topic)
std::vector< std::pair< AbridgedTopic, AbridgedTopic >> TopicMask
bool sha3(bytesConstRef _input, bytesRef o_output)
Calculate SHA3-256 hash of the given input and load it into the given output.
FixedHash< 4 > AbridgedTopic
AbridgedTopics toAbridgedTopics() const
std::vector< h256 > h256s
Class for writing to an RLP bytestream.
BuildTopic & shift(T const &_r)
Class for interpreting Recursive Linear-Prefix Data.