aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorhozan23 <hozan23@proton.me>2023-11-29 12:48:28 +0300
committerhozan23 <hozan23@proton.me>2023-11-29 12:48:28 +0300
commit58b249773ba4d63a8cdde92ff1cb22719e9b3334 (patch)
treee54fb041c1213280a23e67c04b75c8ff8856be7a /core
parent63e8b2fa6b5d4d9bf1ba9234bff0be8a255e612e (diff)
p2p/tls_config: add a small test
Diffstat (limited to 'core')
-rw-r--r--core/src/crypto/key_pair.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/crypto/key_pair.rs b/core/src/crypto/key_pair.rs
index 899cb6a..efaae47 100644
--- a/core/src/crypto/key_pair.rs
+++ b/core/src/crypto/key_pair.rs
@@ -81,6 +81,7 @@ impl KeyPairExt for Ed25519KeyPair {
}
}
+#[derive(Debug)]
pub enum PublicKey {
Ed25519(Ed25519PublicKey),
}
@@ -114,6 +115,7 @@ trait PublicKeyExt {
fn verify(&self, msg: &[u8], signature: &[u8]) -> Result<()>;
}
+#[derive(Debug)]
pub struct Ed25519PublicKey(ed25519_dalek::VerifyingKey);
impl Ed25519PublicKey {