pub fn optimal_mul(
builder: &CircuitBuilder,
a: &BigUint,
b: &BigUint,
) -> BigUintExpand description
Multiply two arbitrary-sized BigUints using textbook algorithm.
This method attempts to pick the most efficient multiplication algorithm.
Computes a * b where both inputs are BigUints. The result will have
a.limbs.len() + b.limbs.len() limbs to accommodate the full product
without overflow.
§Arguments
builder- Circuit builder for constraint generationa- First operandBigUintb- Second operandBigUint
§Returns
Product BigUint with a.limbs.len() + b.limbs.len() limbs