aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-12-12 21:14:15 +0100
committerAlex Auvolat <alex@adnab.me>2020-12-12 21:14:15 +0100
commit6742638c81f8bda2ba3e3ab72ec520ab22b314e2 (patch)
tree0e85579ed8523a4fc8448d931a302350cbf9e952 /src/util.rs
parent50401989724ed70f031055463e21caad76589742 (diff)
downloadnetapp-6742638c81f8bda2ba3e3ab72ec520ab22b314e2.tar.gz
netapp-6742638c81f8bda2ba3e3ab72ec520ab22b314e2.zip
Replace pk,pubkey,PublicKey by id,NodeID,etc
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs
index 017ef00..faeea79 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -2,6 +2,8 @@ use serde::Serialize;
use tokio::sync::watch;
+pub type NodeID = sodiumoxide::crypto::sign::ed25519::PublicKey;
+
/// Utility function: encodes any serializable value in MessagePack binary format
/// using the RMP library.
///