aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-22 13:06:10 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-22 13:06:10 +0200
commit5da59ebec5f3072d0b6c3b1ffc90eb8923c50ad9 (patch)
treecd5c08198db5a0b8499dfb80222d82e8d0518ab2 /src/util.rs
parent9cb28c21b4a80aa9f29097f6bb1b8b6c23446ddc (diff)
downloadnetapp-5da59ebec5f3072d0b6c3b1ffc90eb8923c50ad9.tar.gz
netapp-5da59ebec5f3072d0b6c3b1ffc90eb8923c50ad9.zip
Move things around and fix error bit
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/util.rs b/src/util.rs
index 13cccb9..425d26f 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -6,12 +6,7 @@ use serde::Serialize;
use tokio::sync::watch;
-/// A node's identifier, which is also its public cryptographic key
-pub type NodeID = sodiumoxide::crypto::sign::ed25519::PublicKey;
-/// A node's secret key
-pub type NodeKey = sodiumoxide::crypto::sign::ed25519::SecretKey;
-/// A network key
-pub type NetworkKey = sodiumoxide::crypto::auth::Key;
+use crate::netapp::*;
/// Utility function: encodes any serializable value in MessagePack binary format
/// using the RMP library.