openvm_ecc_guest

Macro impl_sw_affine

Source
macro_rules! impl_sw_affine {
    ($struct_name:ident, $field:ty, $three:expr, $b:expr) => { ... };
}
Expand description

Macro to generate a newtype wrapper for AffinePoint that implements elliptic curve operations by using the underlying field operations according to the formulas for short Weierstrass curves.

The following imports are required:

use core::ops::AddAssign;

use openvm_algebra_guest::{DivUnsafe, Field};
use openvm_ecc_guest::{AffinePoint, Group, weierstrass::WeierstrassPoint};