@@ -76,19 +76,19 @@ pub trait Signing: Context {}
76
76
/// Marker trait for indicating that an instance of `Secp256k1` can be used for verification.
77
77
pub trait Verification : Context { }
78
78
79
- /// Represents the set of capabilities needed for signing with a user preallocated memory.
79
+ /// Represents the set of capabilities needed for signing ( preallocated memory) .
80
80
#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
81
81
pub struct SignOnlyPreallocated < ' buf > {
82
82
phantom : PhantomData < & ' buf ( ) > ,
83
83
}
84
84
85
- /// Represents the set of capabilities needed for verification with a user preallocated memory.
85
+ /// Represents the set of capabilities needed for verification ( preallocated memory) .
86
86
#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
87
87
pub struct VerifyOnlyPreallocated < ' buf > {
88
88
phantom : PhantomData < & ' buf ( ) > ,
89
89
}
90
90
91
- /// Represents the set of all capabilities with a user preallocated memory.
91
+ /// Represents the set of all capabilities ( preallocated memory) .
92
92
#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
93
93
pub struct AllPreallocated < ' buf > {
94
94
phantom : PhantomData < & ' buf ( ) > ,
@@ -301,7 +301,7 @@ unsafe impl<'buf> Context for AllPreallocated<'buf> {
301
301
}
302
302
303
303
impl < ' buf , C : Context + ' buf > Secp256k1 < C > {
304
- /// Lets you create a context with preallocated buffer in a generic manner(sign/verify/all)
304
+ /// Lets you create a context with a preallocated buffer in a generic manner(sign/verify/all).
305
305
pub fn preallocated_gen_new ( buf : & ' buf mut [ AlignedType ] ) -> Result < Secp256k1 < C > , Error > {
306
306
#[ cfg( target_arch = "wasm32" ) ]
307
307
ffi:: types:: sanity_checks_for_wasm ( ) ;
0 commit comments