Skip to content

Commit

Permalink
docs: add assumptions to ec_sub_strict (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang authored Jun 9, 2023
1 parent 8d028d4 commit 020346b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions halo2-ecc/src/ecc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ pub fn ec_sub_unequal<F: PrimeField, FC: FieldChip<F>>(

/// Constrains `P != -Q` but allows `P == Q`, in which case output is (0,0).
/// For Weierstrass curves only.
///
/// Assumptions
/// # Neither P or Q is the point at infinity
pub fn ec_sub_strict<F: PrimeField, FC: FieldChip<F>>(
chip: &FC,
ctx: &mut Context<F>,
Expand Down

0 comments on commit 020346b

Please sign in to comment.