Skip to content

Commit 49972d1

Browse files
committed
Expose padding point from ring context
1 parent 56d554c commit 49972d1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/ring.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ where
258258
ring_proof::ArkTranscript::new(S::SUITE_ID),
259259
)
260260
}
261+
262+
/// Get the padding point.
263+
#[inline(always)]
264+
pub const fn padding_point(&self) -> AffinePoint<S> {
265+
S::PADDING
266+
}
261267
}
262268

263269
impl<S: RingSuite> CanonicalSerialize for RingContext<S>

src/suites/bandersnatch.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ pub mod edwards {
232232
#[cfg(test)]
233233
suite_tests!(BandersnatchSha512Ell2);
234234

235+
#[cfg(test)]
235236
fn check_point(p: AffinePoint) {
236237
assert!(p.is_on_curve());
237238
assert!(p.is_in_correct_subgroup_assuming_on_curve());

0 commit comments

Comments
 (0)