Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
crypto: Switch to correct curve name
Browse files Browse the repository at this point in the history
*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.
  • Loading branch information
cloudhead committed Aug 17, 2023
1 parent 0358d7b commit 95a3146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radicle-crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl From<PublicKey> 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];

Expand Down

0 comments on commit 95a3146

Please sign in to comment.