use ark_ec::pairing::Pairing;
use ark_ff::Field;
pub mod ec;
pub mod poly;
pub fn powers<F: Field>(base: F) -> impl Iterator<Item = F> {
ark_std::iter::successors(Some(F::one()), move |power| Some(base * power))
}
pub fn curve_name<E: Pairing>() -> &'static str {
let full_name = ark_std::any::type_name::<E>();
full_name
.split_once("<")
.unwrap()
.1
.split_once(":")
.unwrap()
.0
}