Skip to content

Commit 0bb62b2

Browse files
committed
feat(e2e): support for aggregate signature type selection
1 parent a8de81d commit 0bb62b2

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

mithril-test-lab/mithril-end-to-end/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ pub struct Args {
103103
)]
104104
signed_entity_types: Vec<String>,
105105

106+
/// Aggregate signature type used to create the certificates
107+
#[clap(long, default_value = "Concatenation")]
108+
aggregate_signature_type: String,
109+
106110
/// Enable run only mode
107111
#[clap(long)]
108112
run_only: bool,
@@ -370,6 +374,7 @@ impl App {
370374
mithril_era: args.mithril_era,
371375
mithril_era_reader_adapter: args.mithril_era_reader_adapter,
372376
signed_entity_types: args.signed_entity_types.clone(),
377+
aggregate_signature_type: args.aggregate_signature_type,
373378
run_only_mode,
374379
use_dmq,
375380
use_relays,

mithril-test-lab/mithril-end-to-end/src/mithril/aggregator.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub struct AggregatorConfig<'a> {
3737
pub mithril_era_reader_adapter: &'a str,
3838
pub mithril_era_marker_address: &'a str,
3939
pub signed_entity_types: &'a [String],
40+
pub aggregate_signature_type: &'a str,
4041
pub chain_observer_type: &'a str,
4142
pub leader_aggregator_endpoint: &'a Option<String>,
4243
pub use_dmq: bool,
@@ -112,6 +113,10 @@ impl Aggregator {
112113
),
113114
("ERA_READER_ADAPTER_PARAMS", &era_reader_adapter_params),
114115
("SIGNED_ENTITY_TYPES", &signed_entity_types),
116+
(
117+
"AGGREGATE_SIGNATURE_TYPE",
118+
aggregator_config.aggregate_signature_type,
119+
),
115120
(
116121
"CARDANO_NODE_VERSION",
117122
aggregator_config.cardano_node_version,

mithril-test-lab/mithril-end-to-end/src/mithril/infrastructure.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pub struct MithrilInfrastructureConfig {
3030
pub mithril_era: String,
3131
pub mithril_era_reader_adapter: String,
3232
pub signed_entity_types: Vec<String>,
33+
pub aggregate_signature_type: String,
3334
pub run_only_mode: bool,
3435
pub use_relays: bool,
3536
pub relay_signer_registration_mode: String,
@@ -65,6 +66,7 @@ impl MithrilInfrastructureConfig {
6566
mithril_era: "era1".to_string(),
6667
mithril_era_reader_adapter: "adapter1".to_string(),
6768
signed_entity_types: vec!["type1".to_string()],
69+
aggregate_signature_type: "Concatenation".to_string(),
6870
run_only_mode: false,
6971
use_relays: false,
7072
relay_signer_registration_mode: "passthrough".to_string(),
@@ -257,6 +259,7 @@ impl MithrilInfrastructure {
257259
mithril_era_reader_adapter: &config.mithril_era_reader_adapter,
258260
mithril_era_marker_address: &config.devnet.mithril_era_marker_address()?,
259261
signed_entity_types: &config.signed_entity_types,
262+
aggregate_signature_type: &config.aggregate_signature_type,
260263
chain_observer_type,
261264
leader_aggregator_endpoint: &leader_aggregator_endpoint,
262265
use_dmq: config.use_dmq,

mithril-test-lab/mithril-end-to-end/src/stress_test/aggregator_helpers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub async fn bootstrap_aggregator(
3434
mithril_era_marker_address: "",
3535
mithril_era_reader_adapter: "dummy",
3636
signed_entity_types: &signed_entity_types,
37+
aggregate_signature_type: "Concatenation",
3738
chain_observer_type,
3839
leader_aggregator_endpoint: &None,
3940
use_dmq: false,

0 commit comments

Comments
 (0)