Raising an element of bls12381::FP12 to the power of 0 crashes.
For example:
extern crate core;
use core::bls12381::fp12::FP12;
use core::bls12381::big::BIG;
fn main() {
let mut g = FP12::new();
g.one();
let mut z = BIG::new();
z.one();
println!("{}", g.pow(&z).tostring());
z.zero();
println!("{}", g.pow(&z).tostring());
}
crashes on the last line with:
thread 'main' panicked at 'index out of bounds: the len is 7 but the index is 318047311615681924', src/bls12381/big.rs:526:13
Raising an element of bls12381::FP12 to the power of 0 crashes.
For example:
crashes on the last line with: