 |
Ethereum
PoC-8
The C++ Implementation of Ethereum
|
Go to the documentation of this file.
29 #include <ethash/keccak.hpp>
69 inline h256 sha3(std::string
const& _input) noexcept
90 return sha3(_input.ref());
110 template <
unsigned N>
116 template <
unsigned N>
123 inline std::string
sha3(std::string
const& _input,
bool _isNibbles)
bool sha3(bytesConstRef _input, bytesRef o_output) noexcept
void sha3mac(bytesConstRef _secret, bytesConstRef _plain, bytesRef _output)
Calculate SHA3-256 MAC.
h256 hash256(BytesMap const &_s)
std::vector< byte > bytes
vector_ref< byte const > bytesConstRef
vector_ref< byte > bytesRef
SecureFixedHash< 32 > sha3Secure(bytesConstRef _input) noexcept
bytes asBytes(std::string const &_b)
Converts a string to a byte array containing the string's (byte) data.
std::vector< unsigned char > toBytes() const
std::string asString(bytes const &_b)
bytes fromHex(std::string const &_s, WhenError _throw=WhenError::DontThrow)
FixedHash< T > & writable()