From f2db469dd9380414ba11c573695f305c9b8c0b34 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 7 Nov 2026 22:35:21 +0100 Subject: simtest: signed changes Every change vouched for on every node within a second; a forged signature vouches for nothing. Auth plan M5. --- src/simtest/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/simtest/mod.rs') diff --git a/src/simtest/mod.rs b/src/simtest/mod.rs index 5acc886..cd0c2c7 100644 --- a/src/simtest/mod.rs +++ b/src/simtest/mod.rs @@ -16,6 +16,7 @@ mod identity; mod reach; mod relay; mod remakes; +mod signatures; mod soak; mod timing; @@ -403,7 +404,7 @@ pub(crate) fn sim_key(id: &str) -> NodeKey { NodeKey::from_seed(sha2::Sha256::digest(id.as_bytes()).into()) } -fn path(path: &str) -> Vec { +pub(crate) fn path(path: &str) -> Vec { path.split('/').map(str::to_owned).collect() } -- cgit v1.3.1