diff options
author | Alex Auvolat <alex@adnab.me> | 2020-12-12 21:14:15 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-12-12 21:14:15 +0100 |
commit | 6742638c81f8bda2ba3e3ab72ec520ab22b314e2 (patch) | |
tree | 0e85579ed8523a4fc8448d931a302350cbf9e952 /src/util.rs | |
parent | 50401989724ed70f031055463e21caad76589742 (diff) | |
download | netapp-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.rs | 2 |
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. /// |