Skip to content

Commit

Permalink
Expose ring padding point
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Sep 13, 2024
1 parent 840f6a2 commit 9279f78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rand_chacha = { version = "0.3", default-features = false }
rayon = { version = "1.10", default-features = false, optional = true }
hmac = {version = "0.12", default-features = false, optional = true }
# Waiting for crates.io
ring-proof = { package = "ring", git = "https://github.com/davxy/ring-proof", rev = "1080a5d", default-features = false, optional = true }
ring-proof = { package = "ring", git = "https://github.com/davxy/ring-proof", rev = "7870dda", default-features = false, optional = true }
# Curves
ark-secp256r1 = { version = "0.4.0", default-features = false, optional = true }
ark-ed25519 = { version = "0.4.0", default-features = false, optional = true }
Expand Down
6 changes: 6 additions & 0 deletions src/ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ where
self.piop_params.keyset_part_size
}

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

/// Construct a `ProverKey` instance for the given ring.
///
/// Note: if `pks.len() > self.max_ring_size()` the extra keys in the tail are ignored.
Expand Down

0 comments on commit 9279f78

Please sign in to comment.