37 streamRLP(rlpxstream);
50 rlpx.copyTo(rlpxPayload);
53 dev::sha3(signedRLPx).ref().copyTo(rlpxHash);
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
bytes const & out() const
Read the byte stream.
std::hash for asio::adress
assert(len-trim+(2 *lenIndices)<=WIDTH)
Public recover(Signature const &_sig, h256 const &_hash)
Recovers Public key from signed message hash.
std::vector< byte > bytes
Signature sign(Secret const &_k, h256 const &_hash)
Returns siganture of message hash.
uint8_t const size_t const size
void copyTo(vector_ref< typename std::remove_const< _T >::type > _t) const
Copies the contents of this vector_ref to the contents of _t, up to the max size of _t...
bool sha3(bytesConstRef _input, bytesRef o_output)
Calculate SHA3-256 hash of the given input and load it into the given output.
Class for writing to an RLP bytestream.
RLPStream & appendRaw(bytesConstRef _rlp, size_t _itemCount=1)
Appends raw (pre-serialised) RLP data. Use with caution.