33 void BasicAuthority::init()
40 return { {
"sig",
toJS(sig(_bi)) } };
55 SealEngineBase::generateSeal(bi);
58 bool BasicAuthority::onOptionChanging(std::string
const& _name,
bytes const& _value)
61 if (_name ==
"authorities")
63 else if (_name ==
"authority")
72 SealEngineFace::populateFromParent(_bi, _parent);
88 BOOST_THROW_EXCEPTION(ex);
94 BOOST_THROW_EXCEPTION(ex);
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
vector_ref< _T const > ref(_T const &_t)
bytes rlp(_T _t)
Export a single item in RLP format, returning a byte array.
uint64_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.
SecureFixedHash< 32 > Secret
std::hash for asio::adress
boost::error_info< struct tag_hash, h256 > errinfo_hash256
_N toHash(int _flags=Strict) const
std::string toJS(FixedHash< S > const &_h)
Public recover(Signature const &_sig, h256 const &_hash)
Recovers Public key from signed message hash.
std::vector< byte > bytes
virtual Transactions pending() const =0
Get a map containing each of the pending transactions.
std::unordered_set< T > toUnorderedSet(int _flags=LaissezFaire) const
std::unordered_map< std::string, std::string > StringHashMap
Address toAddress(Public const &_public)
Convert a public key to address.
Main API hub for interfacing with Ethereum.
Signature sign(Secret const &_k, h256 const &_hash)
Returns siganture of message hash.
bool sha3(bytesConstRef _input, bytesRef o_output)
Calculate SHA3-256 hash of the given input and load it into the given output.
Class for interpreting Recursive Linear-Prefix Data.
bool isValid() const noexcept
virtual BlockHeader pendingInfo() const
#define ETH_REGISTER_SEAL_ENGINE(Name)