Module forest_filecoin::blocks::election_proof
source ยท Structsยง
- Proofs generated by a miner which determines the reward they earn. This is generated from hashing a partial ticket and using the hash to generate a value.
- Poiss ๐Poisson inverted
CDF
lambda is in Q.256 format
Constantsยง
- MAX_WIN_COUNT ๐
- PRECISION ๐
Staticsยง
- EXP_DENO_COEF ๐
- EXP_NUM_COEF ๐
Functionsยง
- expneg ๐
expneg
accepts x in Q.256 format and computes e^-x. It is most precise within [0, 1.725) range, where error is less than 3.4e-30. Over the [0, 5) range its error is less than 4.6e-15. Output is in Q.256 format. - lambda ๐computes lambda in Q.256
- parse ๐
- poly_val ๐
poly_val
evaluates a polynomial given by coefficientsp
in Q.256 format at pointx
in Q.256 format. Output is in Q.256. Coefficients should be ordered from the highest order coefficient to the lowest.