File tree Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " mithril-stm"
3- version = " 0.5.1 "
3+ version = " 0.5.2 "
44edition = { workspace = true }
55authors = { workspace = true }
66homepage = { workspace = true }
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ mod tests {
158158 let vk_infinity = BlsVerificationKey ( p2_affine_to_vk( & p2) ) ;
159159 let vkpop_infinity = BlsVerificationKeyProofOfPossession { vk: vk_infinity, pop } ;
160160
161- let result = vkpop_infinity. verify_proof_of_possesion ( ) ;
161+ let result = vkpop_infinity. verify_proof_of_possession ( ) ;
162162 assert_eq!( result, Err ( MultiSignatureError :: VerificationKeyInfinity ( Box :: new( vkpop_infinity. vk) ) ) ) ;
163163 }
164164
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ impl BlsVerificationKeyProofOfPossession {
136136 /// manually.
137137 // If we are really looking for performance improvements, we can combine the
138138 // two final exponentiations (for verifying k1 and k2) into a single one.
139- pub ( crate ) fn verify_proof_of_possesion ( & self ) -> Result < ( ) , MultiSignatureError > {
139+ pub ( crate ) fn verify_proof_of_possession ( & self ) -> Result < ( ) , MultiSignatureError > {
140140 match self . vk . to_blst_verification_key ( ) . validate ( ) {
141141 Ok ( _) => {
142142 let result = verify_pairing ( & self . vk , & self . pop ) ;
@@ -164,9 +164,12 @@ impl BlsVerificationKeyProofOfPossession {
164164 /// manually.
165165 // If we are really looking for performance improvements, we can combine the
166166 // two final exponentiations (for verifying k1 and k2) into a single one.
167- #[ deprecated( since = "0.5.0" , note = "Use `verify_proof_of_possesion` instead" ) ]
167+ #[ deprecated(
168+ since = "0.5.0" ,
169+ note = "The verification of the proof of possession is not part of the public API any more"
170+ ) ]
168171 pub fn check ( & self ) -> Result < ( ) , MultiSignatureError > {
169- Self :: verify_proof_of_possesion ( self )
172+ Self :: verify_proof_of_possession ( self )
170173 }
171174
172175 /// Convert to a 144 byte string.
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ impl KeyRegistration {
3737 pk : BlsVerificationKeyProofOfPossession ,
3838 ) -> Result < ( ) , RegisterError > {
3939 if let Entry :: Vacant ( e) = self . keys . entry ( pk. vk ) {
40- pk. verify_proof_of_possesion ( ) ?;
40+ pk. verify_proof_of_possession ( ) ?;
4141 e. insert ( stake) ;
4242 return Ok ( ( ) ) ;
4343 }
@@ -136,7 +136,7 @@ mod tests {
136136 }
137137 Err ( RegisterError :: KeyInvalid ( a) ) => {
138138 assert_eq!( fake_it, 0 ) ;
139- assert!( a. verify_proof_of_possesion ( ) . is_err( ) ) ;
139+ assert!( a. verify_proof_of_possession ( ) . is_err( ) ) ;
140140 }
141141 Err ( RegisterError :: SerializationError ) => unreachable!( ) ,
142142 _ => unreachable!( ) ,
You can’t perform that action at this time.
0 commit comments