Skip to content

Commit

Permalink
Expose padding point from ring context
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Nov 2, 2024
1 parent 56d554c commit cfd2f9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ where
ring_proof::ArkTranscript::new(S::SUITE_ID),
)
}

/// Get the padding point.
#[inline(always)]
pub const fn padding_point() -> AffinePoint<S> {
S::PADDING
}
}

impl<S: RingSuite> CanonicalSerialize for RingContext<S>
Expand Down
1 change: 1 addition & 0 deletions src/suites/bandersnatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ pub mod edwards {
#[cfg(test)]
suite_tests!(BandersnatchSha512Ell2);

#[cfg(test)]
fn check_point(p: AffinePoint) {
assert!(p.is_on_curve());
assert!(p.is_in_correct_subgroup_assuming_on_curve());
Expand Down

0 comments on commit cfd2f9b

Please sign in to comment.