Skip to main content

hit

Function hit 

Source
pub fn hit(generation_hash: &GenerationHash) -> u64
Expand description

generation hash から求めた hit。catapult の CalculateHit。

generation hash を 256 ビットの整数 v と見て、2^54 × |ln(v / 2^256)| を求める。最初の1のビットから32ビットだけを使う。