Skip to main content

GEN_REGULAR

Constant GEN_REGULAR 

Source
pub const GEN_REGULAR: [u128; 5];
Expand description

BCH polymod constants for the regular checksum (BCH(93,80,8)).

Source: BIP 93 (codex32) reference implementation, ms32_polymod function. These five values are XORed into the running residue based on the top 5 bits of the residue at each step. The polymod operation uses a 65-bit residue (top 5 bits = current b, bottom 60 bits = masked state).

Verified against the canonical reference at https://github.com/bitcoin/bips/blob/master/bip-0093.mediawiki.