From fe16ff25e961e4d40e2641c1247e3b6c3c09e966 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 14 Oct 2021 12:08:39 +0200 Subject: Export NodeKey and NetworkKey types --- src/util.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util.rs') diff --git a/src/util.rs b/src/util.rs index fa2f37a..81ee89c 100644 --- a/src/util.rs +++ b/src/util.rs @@ -8,6 +8,10 @@ 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; /// Utility function: encodes any serializable value in MessagePack binary format /// using the RMP library. -- cgit v1.2.3