@@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
7
7
8
8
use crate :: error:: StmAggregateSignatureError ;
9
9
use crate :: merkle_tree:: MerkleBatchPath ;
10
- use crate :: { AggregateVerificationKey , Parameters , SingleSignatureWithRegisteredParty } ;
10
+ use crate :: { AggregateVerificationKey , Parameters } ;
11
11
12
12
use super :: ConcatenationProof ;
13
13
@@ -208,49 +208,6 @@ impl<D: Clone + Digest + FixedOutput + Send + Sync> AggregateSignature<D> {
208
208
) ) ,
209
209
}
210
210
}
211
-
212
- /// Extract the list of signatures.
213
- // TODO: transfer this function to the concatenation proof ? Some proofs might not fully carry this information
214
- pub fn signatures ( & self ) -> Vec < SingleSignatureWithRegisteredParty > {
215
- match self {
216
- AggregateSignature :: Concatenation ( concatenation_proof) => {
217
- concatenation_proof. signatures . clone ( )
218
- }
219
- #[ cfg( feature = "future_proof_system" ) ]
220
- AggregateSignature :: Future ( concatenation_proof) => {
221
- concatenation_proof. signatures . clone ( )
222
- }
223
- }
224
- }
225
-
226
- /// Extract the list of unique merkle tree nodes that covers path for all signatures.
227
- // TODO: transfer this function to the concatenation proof
228
- pub fn batch_proof ( & self ) -> MerkleBatchPath < D > {
229
- match self {
230
- AggregateSignature :: Concatenation ( concatenation_proof) => {
231
- concatenation_proof. batch_proof . clone ( )
232
- }
233
- #[ cfg( feature = "future_proof_system" ) ]
234
- AggregateSignature :: Future ( concatenation_proof) => {
235
- concatenation_proof. batch_proof . clone ( )
236
- }
237
- }
238
- }
239
-
240
- /// Extract the list of unique merkle tree nodes that covers path for all signatures. (test only)
241
- // TODO: transfer this function to the concatenation proof
242
- #[ cfg( test) ]
243
- pub ( crate ) fn set_batch_proof ( & mut self , batch_proof : MerkleBatchPath < D > ) {
244
- match self {
245
- AggregateSignature :: Concatenation ( concatenation_proof) => {
246
- concatenation_proof. batch_proof = batch_proof
247
- }
248
- #[ cfg( feature = "future_proof_system" ) ]
249
- AggregateSignature :: Future ( concatenation_proof) => {
250
- concatenation_proof. batch_proof = batch_proof
251
- }
252
- }
253
- }
254
211
}
255
212
256
213
#[ cfg( test) ]
0 commit comments