fn num_bits<C: PrimeOrderCurve>(n: C::Scalar) -> usize
Helper function to compute the number of bits in a scalar.