mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-02-19 04:33:23 +00:00
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 }
25 lines
888 B
Rust
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()
|
|
}
|