mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-02-18 04:03:06 +00:00
* Update config and crate naming
- Updated configs to the lates main repo configs.
- Updated all main repo crate namings to be same as the main repo.
- Added `create_dir_all` to `pub(crate) fn create_tempdir(custom_work_dir: Option<PathBuf>) -> std::io::Result<TempDir> {`.
- Wired in optional `persist_dir` when using the local deployer.
- Update `time` vulnerability
**Note:** Unsure about the `service_params` mapping in `pub(crate) fn cryptarchia_deployment(config: &GeneralConfig) -> CryptarchiaDeploymentSettings {`
25 lines
894 B
Rust
25 lines
894 B
Rust
use lb_groth16::fr_to_bytes;
|
|
use lb_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()
|
|
}
|