This commit is contained in:
Dmitry Vagner 2023-02-28 18:57:17 -08:00
parent ab32f03b10
commit 1ee39b51c1

View File

@ -1,16 +1,17 @@
use crate::bls381_arithmetic::Fp;
use rand::Rng;
use crate::bls381_arithmetic::Fp;
#[test]
fn test_bls_mul() -> Result<(),()> {
fn test_bls_mul() -> Result<(), ()> {
let mut rng = rand::thread_rng();
let f: Fp = rng.gen::<Fp>();
let g: Fp = rng.gen::<Fp>();
let fg = f*g;
let fg = f * g;
println!("{:#?}", f);
println!("{:#?}", g);
println!("{:#?}", fg);
Ok(())
}
}