Skip to main content

bch_create_checksum_long

Function bch_create_checksum_long 

Source
pub fn bch_create_checksum_long(hrp: &str, data: &[u8]) -> [u8; 15]
Expand description

Compute the 15-character BCH checksum for the long code.

Same algorithm as bch_create_checksum_regular but uses the long-code polymod parameters (GEN_LONG, LONG_SHIFT, LONG_MASK) and target constant (MK_LONG_CONST). Produces a 15-element checksum array.