fixed assert in test

This commit is contained in:
sinuio
2022-03-13 22:33:35 -07:00
parent eb079b3aff
commit a1c95003b7

View File

@@ -386,6 +386,9 @@ mod tests {
.to_affine();
let pms = BigInt::from_bytes(pms.to_encoded_point(false).x().unwrap());
assert_eq!(pms, (master_share + slave_share));
assert_eq!(
pms,
(master_share + slave_share) % BigInt::from_hex(P).unwrap()
);
}
}