Implement a more robust validity check on connection creation

This commit is contained in:
Luke Parker
2023-07-09 15:49:35 -04:00
parent c878d38c60
commit 7fa5d291b8
2 changed files with 50 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ pub fn make_even(mut key: ProjectivePoint) -> (ProjectivePoint, u64) {
///
/// If passed an odd nonce, it will have the generator added until it is even.
#[derive(Clone, Copy, Debug)]
pub struct Hram {}
pub struct Hram;
lazy_static! {
static ref TAG_HASH: [u8; 32] = Sha256::digest(b"BIP0340/challenge").into();