From 2460174def740d65576604eb839419af0534b2ce Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Tue, 3 Dec 2024 21:01:04 +0900 Subject: [PATCH] Rename `mixnet-sims` to `blendnet-sims` (#60) * Rename `mixnet-sims` to `blendnet-sims` * Rename `mixnet-sims` to `blendnet-sims` --- simlib/Cargo.toml | 3 +-- simlib/{mixnet-sims => blendnet-sims}/Cargo.toml | 2 +- simlib/{mixnet-sims => blendnet-sims}/README.md | 4 ++-- .../mixnode.json => blendnet-sims/config/blendnet.json} | 0 simlib/{mixnet-sims => blendnet-sims}/scripts/README.md | 0 simlib/{mixnet-sims => blendnet-sims}/scripts/emission.py | 0 simlib/{mixnet-sims => blendnet-sims}/scripts/latency.py | 0 simlib/{mixnet-sims => blendnet-sims}/scripts/mixlog.py | 0 .../{mixnet-sims => blendnet-sims}/scripts/requirements.txt | 0 simlib/{mixnet-sims => blendnet-sims}/src/log.rs | 0 simlib/{mixnet-sims => blendnet-sims}/src/main.rs | 0 .../src/node/mix/consensus_streams.rs | 0 simlib/{mixnet-sims => blendnet-sims}/src/node/mix/lottery.rs | 0 simlib/{mixnet-sims => blendnet-sims}/src/node/mix/message.rs | 0 simlib/{mixnet-sims => blendnet-sims}/src/node/mix/mod.rs | 0 .../{mixnet-sims => blendnet-sims}/src/node/mix/scheduler.rs | 0 simlib/{mixnet-sims => blendnet-sims}/src/node/mix/state.rs | 0 .../src/node/mix/stream_wrapper.rs | 0 simlib/{mixnet-sims => blendnet-sims}/src/node/mod.rs | 0 simlib/{mixnet-sims => blendnet-sims}/src/settings.rs | 0 20 files changed, 4 insertions(+), 5 deletions(-) rename simlib/{mixnet-sims => blendnet-sims}/Cargo.toml (97%) rename simlib/{mixnet-sims => blendnet-sims}/README.md (95%) rename simlib/{mixnet-sims/config/mixnode.json => blendnet-sims/config/blendnet.json} (100%) rename simlib/{mixnet-sims => blendnet-sims}/scripts/README.md (100%) rename simlib/{mixnet-sims => blendnet-sims}/scripts/emission.py (100%) rename simlib/{mixnet-sims => blendnet-sims}/scripts/latency.py (100%) rename simlib/{mixnet-sims => blendnet-sims}/scripts/mixlog.py (100%) rename simlib/{mixnet-sims => blendnet-sims}/scripts/requirements.txt (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/log.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/main.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/node/mix/consensus_streams.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/node/mix/lottery.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/node/mix/message.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/node/mix/mod.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/node/mix/scheduler.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/node/mix/state.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/node/mix/stream_wrapper.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/node/mod.rs (100%) rename simlib/{mixnet-sims => blendnet-sims}/src/settings.rs (100%) diff --git a/simlib/Cargo.toml b/simlib/Cargo.toml index 322581b..fc56e2e 100644 --- a/simlib/Cargo.toml +++ b/simlib/Cargo.toml @@ -1,7 +1,6 @@ [workspace] members = [ "netrunner", - "mixnet-sims" - + "blendnet-sims" ] resolver = "2" diff --git a/simlib/mixnet-sims/Cargo.toml b/simlib/blendnet-sims/Cargo.toml similarity index 97% rename from simlib/mixnet-sims/Cargo.toml rename to simlib/blendnet-sims/Cargo.toml index 13f6898..73b7f1e 100644 --- a/simlib/mixnet-sims/Cargo.toml +++ b/simlib/blendnet-sims/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "mixnet-sims" +name = "blendnet-sims" version = "0.1.0" edition = "2021" diff --git a/simlib/mixnet-sims/README.md b/simlib/blendnet-sims/README.md similarity index 95% rename from simlib/mixnet-sims/README.md rename to simlib/blendnet-sims/README.md index b7326da..fcf5467 100644 --- a/simlib/mixnet-sims/README.md +++ b/simlib/blendnet-sims/README.md @@ -15,7 +15,7 @@ ## Configurations -The simulation can be configured by [config/mixnode.json](./config/mixnode.json). +The simulation can be configured by [config/blendnet.json](./config/blendnet.json). ### `step_time` and `network_settings` @@ -76,7 +76,7 @@ at the beginning of each epoch. At every selected slot, the node generates a cov ```bash cargo build --release -../target/release/mixnet-sims --input-settings ./config/mixnode.json +../target/release/blendnet-sims --input-settings ./config/blendnet.json ``` The simulation prints a bunch of logs that can be used for analysis. We recommend piping logs to a file. diff --git a/simlib/mixnet-sims/config/mixnode.json b/simlib/blendnet-sims/config/blendnet.json similarity index 100% rename from simlib/mixnet-sims/config/mixnode.json rename to simlib/blendnet-sims/config/blendnet.json diff --git a/simlib/mixnet-sims/scripts/README.md b/simlib/blendnet-sims/scripts/README.md similarity index 100% rename from simlib/mixnet-sims/scripts/README.md rename to simlib/blendnet-sims/scripts/README.md diff --git a/simlib/mixnet-sims/scripts/emission.py b/simlib/blendnet-sims/scripts/emission.py similarity index 100% rename from simlib/mixnet-sims/scripts/emission.py rename to simlib/blendnet-sims/scripts/emission.py diff --git a/simlib/mixnet-sims/scripts/latency.py b/simlib/blendnet-sims/scripts/latency.py similarity index 100% rename from simlib/mixnet-sims/scripts/latency.py rename to simlib/blendnet-sims/scripts/latency.py diff --git a/simlib/mixnet-sims/scripts/mixlog.py b/simlib/blendnet-sims/scripts/mixlog.py similarity index 100% rename from simlib/mixnet-sims/scripts/mixlog.py rename to simlib/blendnet-sims/scripts/mixlog.py diff --git a/simlib/mixnet-sims/scripts/requirements.txt b/simlib/blendnet-sims/scripts/requirements.txt similarity index 100% rename from simlib/mixnet-sims/scripts/requirements.txt rename to simlib/blendnet-sims/scripts/requirements.txt diff --git a/simlib/mixnet-sims/src/log.rs b/simlib/blendnet-sims/src/log.rs similarity index 100% rename from simlib/mixnet-sims/src/log.rs rename to simlib/blendnet-sims/src/log.rs diff --git a/simlib/mixnet-sims/src/main.rs b/simlib/blendnet-sims/src/main.rs similarity index 100% rename from simlib/mixnet-sims/src/main.rs rename to simlib/blendnet-sims/src/main.rs diff --git a/simlib/mixnet-sims/src/node/mix/consensus_streams.rs b/simlib/blendnet-sims/src/node/mix/consensus_streams.rs similarity index 100% rename from simlib/mixnet-sims/src/node/mix/consensus_streams.rs rename to simlib/blendnet-sims/src/node/mix/consensus_streams.rs diff --git a/simlib/mixnet-sims/src/node/mix/lottery.rs b/simlib/blendnet-sims/src/node/mix/lottery.rs similarity index 100% rename from simlib/mixnet-sims/src/node/mix/lottery.rs rename to simlib/blendnet-sims/src/node/mix/lottery.rs diff --git a/simlib/mixnet-sims/src/node/mix/message.rs b/simlib/blendnet-sims/src/node/mix/message.rs similarity index 100% rename from simlib/mixnet-sims/src/node/mix/message.rs rename to simlib/blendnet-sims/src/node/mix/message.rs diff --git a/simlib/mixnet-sims/src/node/mix/mod.rs b/simlib/blendnet-sims/src/node/mix/mod.rs similarity index 100% rename from simlib/mixnet-sims/src/node/mix/mod.rs rename to simlib/blendnet-sims/src/node/mix/mod.rs diff --git a/simlib/mixnet-sims/src/node/mix/scheduler.rs b/simlib/blendnet-sims/src/node/mix/scheduler.rs similarity index 100% rename from simlib/mixnet-sims/src/node/mix/scheduler.rs rename to simlib/blendnet-sims/src/node/mix/scheduler.rs diff --git a/simlib/mixnet-sims/src/node/mix/state.rs b/simlib/blendnet-sims/src/node/mix/state.rs similarity index 100% rename from simlib/mixnet-sims/src/node/mix/state.rs rename to simlib/blendnet-sims/src/node/mix/state.rs diff --git a/simlib/mixnet-sims/src/node/mix/stream_wrapper.rs b/simlib/blendnet-sims/src/node/mix/stream_wrapper.rs similarity index 100% rename from simlib/mixnet-sims/src/node/mix/stream_wrapper.rs rename to simlib/blendnet-sims/src/node/mix/stream_wrapper.rs diff --git a/simlib/mixnet-sims/src/node/mod.rs b/simlib/blendnet-sims/src/node/mod.rs similarity index 100% rename from simlib/mixnet-sims/src/node/mod.rs rename to simlib/blendnet-sims/src/node/mod.rs diff --git a/simlib/mixnet-sims/src/settings.rs b/simlib/blendnet-sims/src/settings.rs similarity index 100% rename from simlib/mixnet-sims/src/settings.rs rename to simlib/blendnet-sims/src/settings.rs