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 1
1
[package ]
2
2
name = " mithril-stm"
3
- version = " 0.5.1 "
3
+ version = " 0.5.2 "
4
4
edition = { workspace = true }
5
5
authors = { workspace = true }
6
6
homepage = { workspace = true }
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ mod tests {
158
158
let vk_infinity = BlsVerificationKey ( p2_affine_to_vk( & p2) ) ;
159
159
let vkpop_infinity = BlsVerificationKeyProofOfPossession { vk: vk_infinity, pop } ;
160
160
161
- let result = vkpop_infinity. verify_proof_of_possesion ( ) ;
161
+ let result = vkpop_infinity. verify_proof_of_possession ( ) ;
162
162
assert_eq!( result, Err ( MultiSignatureError :: VerificationKeyInfinity ( Box :: new( vkpop_infinity. vk) ) ) ) ;
163
163
}
164
164
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ impl BlsVerificationKeyProofOfPossession {
136
136
/// manually.
137
137
// If we are really looking for performance improvements, we can combine the
138
138
// 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 > {
140
140
match self . vk . to_blst_verification_key ( ) . validate ( ) {
141
141
Ok ( _) => {
142
142
let result = verify_pairing ( & self . vk , & self . pop ) ;
@@ -164,9 +164,12 @@ impl BlsVerificationKeyProofOfPossession {
164
164
/// manually.
165
165
// If we are really looking for performance improvements, we can combine the
166
166
// 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
+ ) ]
168
171
pub fn check ( & self ) -> Result < ( ) , MultiSignatureError > {
169
- Self :: verify_proof_of_possesion ( self )
172
+ Self :: verify_proof_of_possession ( self )
170
173
}
171
174
172
175
/// Convert to a 144 byte string.
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ impl KeyRegistration {
37
37
pk : BlsVerificationKeyProofOfPossession ,
38
38
) -> Result < ( ) , RegisterError > {
39
39
if let Entry :: Vacant ( e) = self . keys . entry ( pk. vk ) {
40
- pk. verify_proof_of_possesion ( ) ?;
40
+ pk. verify_proof_of_possession ( ) ?;
41
41
e. insert ( stake) ;
42
42
return Ok ( ( ) ) ;
43
43
}
@@ -136,7 +136,7 @@ mod tests {
136
136
}
137
137
Err ( RegisterError :: KeyInvalid ( a) ) => {
138
138
assert_eq!( fake_it, 0 ) ;
139
- assert!( a. verify_proof_of_possesion ( ) . is_err( ) ) ;
139
+ assert!( a. verify_proof_of_possession ( ) . is_err( ) ) ;
140
140
}
141
141
Err ( RegisterError :: SerializationError ) => unreachable!( ) ,
142
142
_ => unreachable!( ) ,
You can’t perform that action at this time.
0 commit comments