From 95a314688589b8b974015fef57f1e0b0751692ad Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Sat, 22 Jul 2023 22:51:14 +0200 Subject: [PATCH] crypto: Switch to correct curve name *Note: this is a breaking change for the network protocol*. We switch to the correct curve name for the noise handshake. Since this value is hashed as part of the handshake digest, it will break the protocol until all nodes upgrade. --- radicle-crypto/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle-crypto/src/lib.rs b/radicle-crypto/src/lib.rs index a2a57c6a..e580e9f2 100644 --- a/radicle-crypto/src/lib.rs +++ b/radicle-crypto/src/lib.rs @@ -175,7 +175,7 @@ impl From for ssh_key::PublicKey { #[cfg(feature = "cyphernet")] impl cyphernet::EcPk for PublicKey { const COMPRESSED_LEN: usize = 32; - const CURVE_NAME: &'static str = "Curve25519"; + const CURVE_NAME: &'static str = "Edwards25519"; type Compressed = [u8; 32];