@@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
77
88use crate :: error:: StmAggregateSignatureError ;
99use crate :: merkle_tree:: MerkleBatchPath ;
10- use crate :: { AggregateVerificationKey , Parameters , SingleSignatureWithRegisteredParty } ;
10+ use crate :: { AggregateVerificationKey , Parameters } ;
1111
1212use super :: ConcatenationProof ;
1313
@@ -208,49 +208,6 @@ impl<D: Clone + Digest + FixedOutput + Send + Sync> AggregateSignature<D> {
208208 ) ) ,
209209 }
210210 }
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- }
254211}
255212
256213#[ cfg( test) ]
0 commit comments