@@ -8,8 +8,8 @@ use crate::bls_multi_signature::{BlsSignature, BlsVerificationKey};
88use crate :: key_registration:: RegisteredParty ;
99use crate :: merkle_tree:: MerkleBatchPath ;
1010use crate :: {
11- AggregateVerificationKey , BasicVerifier , Parameters , SingleSignature ,
12- SingleSignatureWithRegisteredParty , StmAggregateSignatureError , StmResult ,
11+ AggregateSignatureError , AggregateVerificationKey , BasicVerifier , Parameters , SingleSignature ,
12+ SingleSignatureWithRegisteredParty , StmResult ,
1313} ;
1414
1515/// `ConcatenationProof` uses the "concatenation" proving system (as described in Section 4.3 of the original paper.)
@@ -211,25 +211,25 @@ impl<D: Clone + Digest + FixedOutput + Send + Sync> ConcatenationProof<D> {
211211 u64_bytes. copy_from_slice (
212212 bytes
213213 . get ( bytes_index..bytes_index + 8 )
214- . ok_or ( StmAggregateSignatureError :: SerializationError ) ?,
214+ . ok_or ( AggregateSignatureError :: SerializationError ) ?,
215215 ) ;
216216 let total_sigs = usize:: try_from ( u64:: from_be_bytes ( u64_bytes) )
217- . map_err ( |_| StmAggregateSignatureError :: SerializationError ) ?;
217+ . map_err ( |_| AggregateSignatureError :: SerializationError ) ?;
218218 bytes_index += 8 ;
219219
220220 let mut sig_reg_list = Vec :: with_capacity ( total_sigs) ;
221221 for _ in 0 ..total_sigs {
222222 u64_bytes. copy_from_slice (
223223 bytes
224224 . get ( bytes_index..bytes_index + 8 )
225- . ok_or ( StmAggregateSignatureError :: SerializationError ) ?,
225+ . ok_or ( AggregateSignatureError :: SerializationError ) ?,
226226 ) ;
227227 let sig_reg_size = usize:: try_from ( u64:: from_be_bytes ( u64_bytes) )
228- . map_err ( |_| StmAggregateSignatureError :: SerializationError ) ?;
228+ . map_err ( |_| AggregateSignatureError :: SerializationError ) ?;
229229 let sig_reg = SingleSignatureWithRegisteredParty :: from_bytes :: < D > (
230230 bytes
231231 . get ( bytes_index + 8 ..bytes_index + 8 + sig_reg_size)
232- . ok_or ( StmAggregateSignatureError :: SerializationError ) ?,
232+ . ok_or ( AggregateSignatureError :: SerializationError ) ?,
233233 ) ?;
234234 bytes_index += 8 + sig_reg_size;
235235 sig_reg_list. push ( sig_reg) ;
@@ -238,7 +238,7 @@ impl<D: Clone + Digest + FixedOutput + Send + Sync> ConcatenationProof<D> {
238238 let batch_proof = MerkleBatchPath :: from_bytes (
239239 bytes
240240 . get ( bytes_index..)
241- . ok_or ( StmAggregateSignatureError :: SerializationError ) ?,
241+ . ok_or ( AggregateSignatureError :: SerializationError ) ?,
242242 ) ?;
243243
244244 Ok ( ConcatenationProof {
0 commit comments