Skip to content

Commit eddcfdb

Browse files
committed
Rename GeneratorsView to BulletproofGensShare
1 parent 5079cd4 commit eddcfdb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/generators.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ impl Generators {
151151

152152
/// Returns j-th share of generators, with an appropriate
153153
/// slice of vectors G and H for the j-th range proof.
154-
pub fn share(&self, j: usize) -> GeneratorsView {
155-
GeneratorsView {
154+
pub fn share(&self, j: usize) -> BulletproofGensShare {
155+
BulletproofGensShare {
156156
pedersen_gens: &self.pedersen_gens,
157157
gens: &self,
158158
share: j,
@@ -214,13 +214,13 @@ impl<'a> Iterator for AggregatedGensIter<'a> {
214214
}
215215
}
216216

217-
/// The `GeneratorsView` is produced by `Generators::share()`.
217+
/// The `BulletproofGensShare` is produced by `Generators::share()`.
218218
///
219219
/// The `Generators` struct represents generators for an aggregated
220-
/// range proof `m` proofs of `n` bits each; the `GeneratorsView`
220+
/// range proof `m` proofs of `n` bits each; the `BulletproofGensShare`
221221
/// represents the generators for one of the `m` parties' shares.
222222
#[derive(Copy, Clone)]
223-
pub struct GeneratorsView<'a> {
223+
pub struct BulletproofGensShare<'a> {
224224
/// Bases for Pedersen commitments
225225
pub pedersen_gens: &'a PedersenGens,
226226
/// The parent object that this is a view into
@@ -229,7 +229,7 @@ pub struct GeneratorsView<'a> {
229229
share: usize,
230230
}
231231

232-
impl<'a> GeneratorsView<'a> {
232+
impl<'a> BulletproofGensShare<'a> {
233233
/// Return an iterator over this party's G generators with given size `n`.
234234
pub(crate) fn G(&self, n: usize) -> impl Iterator<Item = &'a RistrettoPoint> {
235235
self.gens.G_vec[self.share].iter().take(n)

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ mod transcript;
4141
pub use merlin::Transcript;
4242

4343
pub use errors::ProofError;
44-
pub use generators::{Generators, GeneratorsView, PedersenGens};
44+
pub use generators::{Generators, BulletproofGensShare, PedersenGens};
4545
pub use range_proof::RangeProof;
4646

4747
#[doc(include = "../docs/aggregation-api.md")]

0 commit comments

Comments
 (0)