TARAXA
vrf_sortition.hpp File Reference
#include <libdevcore/SHA3.h>
#include <libdevcrypto/Common.h>
#include <boost/multiprecision/mpfr.hpp>
#include "common/types.hpp"
#include "common/vrf_wrapper.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  taraxa::VrfPbftMsg
 VrfPbftMsg class uses PBFT period, round and step to generate a message for doing VRF sortition. More...
 
class  taraxa::VrfPbftSortition
 VrfPbftSortition class used for doing VRF sortition to place a vote or to propose a new PBFT block. More...
 

Namespaces

 taraxa
 

Enumerations

enum class  taraxa::PbftVoteTypes : uint8_t {
  taraxa::invalid_vote = 0 , taraxa::propose_vote , taraxa::soft_vote , taraxa::cert_vote ,
  taraxa::next_vote
}
 

Functions

dev::h256 taraxa::getVoterIndexHash (const vrf_wrapper::vrf_output_t &vrf, const public_t &address, uint64_t index=0)
 Get a hash number of combining VRF output, voter address, and vote weight index. More...