@@ -110,7 +110,7 @@ impl CommitEngine {
110
110
111
111
pub fn commit_to_hash < T : CommitEncode < CommitmentId = StrictHash > + StrictType > (
112
112
& mut self ,
113
- value : T ,
113
+ value : & T ,
114
114
) {
115
115
let fqn = commitment_fqn :: < T > ( ) ;
116
116
self . layout
@@ -209,9 +209,6 @@ impl CommitEngine {
209
209
pub fn finish_layout ( self ) -> ( Sha256 , TinyVec < CommitStep > ) { ( self . hasher , self . layout ) }
210
210
}
211
211
212
- /// Prepares the data to the *consensus commit* procedure by first running
213
- /// necessary conceal and merklization procedures, and them performing strict
214
- /// encoding for the resulted data.
215
212
pub trait CommitEncode {
216
213
/// Type of the resulting commitment.
217
214
type CommitmentId : CommitmentId ;
@@ -263,7 +260,7 @@ where T: CommitEncode + StrictDumb
263
260
264
261
/// High-level API used in client-side validation for producing a single
265
262
/// commitment to the data, which includes running all necessary procedures like
266
- /// concealment with [`crate:: Conceal`], merklization, strict encoding,
263
+ /// concealment with [`Conceal`], merklization, strict encoding,
267
264
/// wrapped into [`CommitEncode`], followed by the actual commitment to its
268
265
/// output.
269
266
///
@@ -291,7 +288,7 @@ impl<T: CommitEncode> CommitId for T {
291
288
292
289
#[ derive( Wrapper , Copy , Clone , Ord , PartialOrd , Eq , PartialEq , Hash , Debug , From ) ]
293
290
#[ wrapper( Deref , BorrowSlice , Display , FromStr , Hex , Index , RangeOps ) ]
294
- #[ derive( StrictDumb , strict_encoding :: StrictType , StrictEncode , StrictDecode ) ]
291
+ #[ derive( StrictDumb , StrictType , StrictEncode , StrictDecode ) ]
295
292
#[ strict_type( lib = LIB_NAME_COMMIT_VERIFY ) ]
296
293
#[ cfg_attr(
297
294
feature = "serde" ,
0 commit comments