From e4501852d5552c8bc754d6c3e674b174a70b81e1 Mon Sep 17 00:00:00 2001 From: Jedrzej Stuczynski Date: Fri, 10 Jan 2020 14:12:29 +0000 Subject: [PATCH] Made curve generator private --- common/crypto/src/encryption/x25519.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/crypto/src/encryption/x25519.rs b/common/crypto/src/encryption/x25519.rs index 499cdd3de0..d7d5be9f62 100644 --- a/common/crypto/src/encryption/x25519.rs +++ b/common/crypto/src/encryption/x25519.rs @@ -7,7 +7,7 @@ use curve25519_dalek::scalar::Scalar; // TODO: ensure this is a proper name for this considering we are not implementing entire DH here -pub const CURVE_GENERATOR: MontgomeryPoint = curve25519_dalek::constants::X25519_BASEPOINT; +const CURVE_GENERATOR: MontgomeryPoint = curve25519_dalek::constants::X25519_BASEPOINT; pub struct KeyPair { pub(crate) private_key: PrivateKey,