@@ -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)
0 commit comments