@@ -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
@@ -193,49 +193,6 @@ impl<D: Clone + Digest + FixedOutput + Send + Sync> AggregateSignature<D> {
193
193
AggregateSignature :: Future => None ,
194
194
}
195
195
}
196
-
197
- /// Extract the list of signatures.
198
- // TODO: transfer this function to the concatenation proof ? Some proofs might not fully carry this information
199
- pub fn signatures ( & self ) -> Vec < SingleSignatureWithRegisteredParty > {
200
- match self {
201
- AggregateSignature :: Concatenation ( concatenation_proof) => {
202
- concatenation_proof. signatures . clone ( )
203
- }
204
- #[ cfg( feature = "future_proof_system" ) ]
205
- AggregateSignature :: Future ( concatenation_proof) => {
206
- concatenation_proof. signatures . clone ( )
207
- }
208
- }
209
- }
210
-
211
- /// Extract the list of unique merkle tree nodes that covers path for all signatures.
212
- // TODO: transfer this function to the concatenation proof
213
- pub fn batch_proof ( & self ) -> MerkleBatchPath < D > {
214
- match self {
215
- AggregateSignature :: Concatenation ( concatenation_proof) => {
216
- concatenation_proof. batch_proof . clone ( )
217
- }
218
- #[ cfg( feature = "future_proof_system" ) ]
219
- AggregateSignature :: Future ( concatenation_proof) => {
220
- concatenation_proof. batch_proof . clone ( )
221
- }
222
- }
223
- }
224
-
225
- /// Extract the list of unique merkle tree nodes that covers path for all signatures. (test only)
226
- // TODO: transfer this function to the concatenation proof
227
- #[ cfg( test) ]
228
- pub ( crate ) fn set_batch_proof ( & mut self , batch_proof : MerkleBatchPath < D > ) {
229
- match self {
230
- AggregateSignature :: Concatenation ( concatenation_proof) => {
231
- concatenation_proof. batch_proof = batch_proof
232
- }
233
- #[ cfg( feature = "future_proof_system" ) ]
234
- AggregateSignature :: Future ( concatenation_proof) => {
235
- concatenation_proof. batch_proof = batch_proof
236
- }
237
- }
238
- }
239
196
}
240
197
241
198
#[ cfg( test) ]
0 commit comments