Hansie Odendaal dc06af5486
update for main repo changes (#10)
Update for main repo changes - this implied many changes in the testing framework code

removal of DA config-related code that was still present because it was required by node code until now
nomos-da-network-core = { workspace = true }
subnetworks-assignations = { workspace = true }
nomos-da-dispersal = { workspace = true }
nomos-da-network-core = { workspace = true }
nomos-da-network-service = { workspace = true }
nomos-da-sampling = { workspace = true }
nomos-da-verifier = { workspace = true }
nomos-ledger = { workspace = true, features = ["serde"] }
removal of the executor node
logos-blockchain-executor = { workspace = true }
2026-01-25 10:11:16 +02:00

25 lines
888 B
Rust

use groth16::fr_to_bytes;
use key_management_system_service::{backend::preload::PreloadKMSBackendSettings, keys::Key};
use testing_framework_config::topology::configs::blend::GeneralBlendConfig;
pub fn create_kms_configs(blend_configs: &[GeneralBlendConfig]) -> Vec<PreloadKMSBackendSettings> {
blend_configs
.iter()
.map(|blend_conf| PreloadKMSBackendSettings {
keys: [
(
hex::encode(blend_conf.signer.public_key().to_bytes()),
Key::Ed25519(blend_conf.signer.clone()),
),
(
hex::encode(fr_to_bytes(
blend_conf.secret_zk_key.to_public_key().as_fr(),
)),
Key::Zk(blend_conf.secret_zk_key.clone()),
),
]
.into(),
})
.collect()
}