Skip to main content

high_bits

Function high_bits 

Source
pub fn high_bits(r: i32, gamma2: i32) -> i32
Expand description

Extract the high-order representative of a coefficient.

Implements Algorithm 37 of FIPS 204 (HighBits). Returns the r1 component from decompose. This is used to compute the commitment w1 during signing and verification.