36 if (!
get()->m_execs.count(_name))
37 BOOST_THROW_EXCEPTION(ExecutorNotFound());
38 return get()->m_execs[_name];
54 memcpy(&in, _in.data(),
min(_in.size(),
sizeof(in)));
58 if (v >= 27 && v <= 28)
68 memset(ret.data(), 0, 12);
69 return {
true, ret.asBytes()};
90 return {
true, _in.toBytes()};
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::hash for asio::adress
if(a.IndicesBefore(b, len, lenIndices))
std::function< std::pair< bool, bytes >(bytesConstRef _in)> PrecompiledExecutor
Public recover(Signature const &_sig, h256 const &_hash)
Recovers Public key from signed message hash.
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
h160 ripemd160(bytesConstRef _input)
void * memcpy(void *a, const void *b, size_t c)
h256 sha256(bytesConstRef _input)
Internal SHA-256 implementation.
bool sha3(bytesConstRef _input, bytesRef o_output)
Calculate SHA3-256 hash of the given input and load it into the given output.
#define ETH_REGISTER_PRECOMPILED(Name)
bool isValid() const noexcept
Internal RIPEMD-160 implementation.