 |
Ethereum
PoC-8
The C++ Implementation of Ethereum
|
Go to the documentation of this file.
33 void BasicAuthority::init()
40 return { {
"sig",
toJS(sig(_bi)) } };
56 if (m_onSealGenerated)
57 m_onSealGenerated(ret.
out());
60 bool BasicAuthority::onOptionChanging(std::string
const& _name,
bytes const& _value)
63 if (_name ==
"authorities")
65 else if (_name ==
"authority")
74 SealEngineFace::populateFromParent(_bi, _parent);
90 BOOST_THROW_EXCEPTION(ex);
96 BOOST_THROW_EXCEPTION(ex);
bool sha3(bytesConstRef _input, bytesRef o_output) noexcept
boost::error_info< struct tag_hash, h256 > errinfo_hash256
bytes const & out() const
Read the byte stream.
virtual BlockHeader pendingInfo() const
bytes rlp(_T _t)
Export a single item in RLP format, returning a byte array.
int64_t utcTime()
Get the current time in seconds since the epoch in UTC.
bool verify(Public const &_k, Signature const &_s, h256 const &_hash)
Verify signature.
virtual Transactions pending() const =0
Public recover(Signature const &_sig, h256 const &_hash)
Recovers Public key from signed message hash.
std::vector< byte > bytes
Main API hub for interfacing with Ethereum.
Address toAddress(Public const &_public)
Convert a public key to address.
Class for writing to an RLP bytestream.
Signature sign(Secret const &_k, h256 const &_hash)
Returns siganture of message hash.
#define ETH_REGISTER_SEAL_ENGINE(Name)
SecureFixedHash< 32 > Secret
std::unordered_map< std::string, std::string > StringHashMap
std::string toJS(byte _b)