@@ -46,7 +46,7 @@ impl<D: Clone + Digest + FixedOutput> Signer<D> {
4646 }
4747
4848 /// Create a Signer for given input
49- #[ deprecated( since = "0.4.9" , note = "This function will be removed " ) ]
49+ #[ deprecated( since = "0.4.9" , note = "Use `set_signer` instead " ) ]
5050 pub fn set_stm_signer (
5151 signer_index : u64 ,
5252 stake : Stake ,
@@ -55,7 +55,7 @@ impl<D: Clone + Digest + FixedOutput> Signer<D> {
5555 vk : VerificationKey ,
5656 closed_reg : ClosedKeyRegistration < D > ,
5757 ) -> Signer < D > {
58- Signer :: set_signer ( signer_index, stake, params, sk, vk, closed_reg)
58+ Self :: set_signer ( signer_index, stake, params, sk, vk, closed_reg)
5959 }
6060
6161 /// Create a basic signer (no registration data) for given input
@@ -77,15 +77,15 @@ impl<D: Clone + Digest + FixedOutput> Signer<D> {
7777 }
7878
7979 /// Create a core signer (no registration data) for given input
80- #[ deprecated( since = "0.4.9" , note = "This function will be removed " ) ]
80+ #[ deprecated( since = "0.4.9" , note = "Use `set_basic_signer` instead " ) ]
8181 pub fn set_core_signer (
8282 signer_index : u64 ,
8383 stake : Stake ,
8484 params : Parameters ,
8585 sk : BlsSigningKey ,
8686 vk : VerificationKey ,
8787 ) -> Signer < D > {
88- Signer :: set_basic_signer ( signer_index, stake, params, sk, vk)
88+ Self :: set_basic_signer ( signer_index, stake, params, sk, vk)
8989 }
9090
9191 /// This function produces a signature following the description of Section 2.4.
@@ -115,7 +115,7 @@ impl<D: Clone + Digest + FixedOutput> Signer<D> {
115115 }
116116
117117 /// Extract the verification key.
118- #[ deprecated( since = "0.4.9" , note = "This function will be removed " ) ]
118+ #[ deprecated( since = "0.4.9" , note = "Use `get_verification_key` instead " ) ]
119119 pub fn verification_key ( & self ) -> VerificationKey {
120120 Self :: get_verification_key ( self )
121121 }
@@ -125,8 +125,8 @@ impl<D: Clone + Digest + FixedOutput> Signer<D> {
125125 self . stake
126126 }
127127
128- /// A core signature generated without closed registration.
129- /// The core signature can be verified by core verifier.
128+ /// A basic signature generated without closed key registration.
129+ /// The basic signature can be verified by basic verifier.
130130 /// Once the signature is produced, this function checks whether any index in `[0,..,self.params.m]`
131131 /// wins the lottery by evaluating the dense mapping.
132132 /// It records all the winning indexes in `Self.indexes`.
@@ -145,14 +145,14 @@ impl<D: Clone + Digest + FixedOutput> Signer<D> {
145145 }
146146 }
147147
148- /// A core signature generated without closed registration.
149- /// The core signature can be verified by core verifier.
148+ /// A basic signature generated without closed key registration.
149+ /// The basic signature can be verified by basic verifier.
150150 /// Once the signature is produced, this function checks whether any index in `[0,..,self.params.m]`
151151 /// wins the lottery by evaluating the dense mapping.
152152 /// It records all the winning indexes in `Self.indexes`.
153- #[ deprecated( since = "0.4.9" , note = "This function will be removed " ) ]
153+ #[ deprecated( since = "0.4.9" , note = "Use `basic_sign` instead " ) ]
154154 pub fn core_sign ( & self , msg : & [ u8 ] , total_stake : Stake ) -> Option < SingleSignature > {
155- Signer :: basic_sign ( self , msg, total_stake)
155+ Self :: basic_sign ( self , msg, total_stake)
156156 }
157157
158158 /// Collects and returns the winning indices.
@@ -177,9 +177,9 @@ impl<D: Clone + Digest + FixedOutput> Signer<D> {
177177 }
178178
179179 /// Get Parameters
180- #[ deprecated( since = "0.4.9" , note = "This function will be removed " ) ]
180+ #[ deprecated( since = "0.4.9" , note = "Use `get_parameters` instead " ) ]
181181 pub fn get_params ( & self ) -> Parameters {
182- Signer :: get_parameters ( self )
182+ Self :: get_parameters ( self )
183183 }
184184
185185 /// Get closed key registration
@@ -188,8 +188,8 @@ impl<D: Clone + Digest + FixedOutput> Signer<D> {
188188 }
189189
190190 /// Get closed key registration
191- #[ deprecated( since = "0.4.9" , note = "This function will be removed " ) ]
191+ #[ deprecated( since = "0.4.9" , note = "Use `get_closed_key_registration` instead " ) ]
192192 pub fn get_closed_reg ( & self ) -> Option < ClosedKeyRegistration < D > > {
193- Signer :: get_closed_key_registration ( self )
193+ Self :: get_closed_key_registration ( self )
194194 }
195195}
0 commit comments