36 std::string
name()
const override {
return "BasicAuthority"; }
37 unsigned revision()
const override {
return 0; }
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
StringHashMap jsInfo(BlockHeader const &_bi) const override
bytes rlp(_T _t)
Export a single item in RLP format, returning a byte array.
bytes sealRLP() const override
unsigned revision() const override
unsigned sealFields() const override
AddressHash m_authorities
std::string name() const override
bool shouldSeal(Interface *) override
static BlockHeader & setSig(BlockHeader &_bi, Signature const &_sig)
void generateSeal(BlockHeader const &_bi) override
std::vector< byte > bytes
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
void populateFromParent(BlockHeader &, BlockHeader const &) const override
Don't forget to call Super::populateFromParent when subclassing & overriding.
void setSecret(Secret const &_s)
h520 Signature
A signature: 65 bytes: r: [0, 32), s: [32, 64), v: 64.
std::unordered_map< std::string, std::string > StringHashMap
Main API hub for interfacing with Ethereum.
bool onOptionChanging(std::string const &_name, bytes const &_value) override
void verify(Strictness _s, BlockHeader const &_bi, BlockHeader const &_parent, bytesConstRef _block) const override
Don't forget to call Super::verify when subclassing & overriding.
static Signature sig(BlockHeader const &_bi)
std::unordered_set< h160 > AddressHash
A hash set of Ethereum addresses.