Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

BN254_SEED_BITS_NAF

NAF (Non-Adjacent Form) representation of BN254 seed parameter for Miller loop computation in pairing operations.

Computed as: NAF(6·x + 2)1: where x = 0x44E992B44A6909F1 Encoding: -1 is replaced by 2 (values are 0, 1, or 2) See hydra/garaga/definitions.py for the NAF algorithm

Fully qualified path: garaga::definitions::curves::BN254_SEED_BITS_NAF

pub const BN254_SEED_BITS_NAF: [u32; 65] = [
    0, 2, 0, 1, 0, 0, 0, 2, 0, 2, 0, 0, 0, 2, 0, 0, 1, 1, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 1,
    0, 0, 2, 0, 0, 0, 0, 2, 0, 1, 0, 0, 0, 2, 0, 2, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 2, 2, 0, 0,
    0,
];