From 1df44527dff76781a9b04006bc1bd0452bb07273 Mon Sep 17 00:00:00 2001 From: Nanak Nihal Singh Khalsa Date: Wed, 25 Jan 2023 09:15:31 -0500 Subject: [PATCH] made poseidon public --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 826177a..5b3bf9f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,7 +57,7 @@ lazy_static! { ) .unwrap() >> 3; - static ref POSEIDON: poseidon_rs::Poseidon = Poseidon::new(); + pub static ref POSEIDON: poseidon_rs::Poseidon = Poseidon::new(); } #[derive(Clone, Debug)] @@ -248,6 +248,7 @@ fn blh(b: &[u8]) -> Vec { let digest = h.finalize(); return digest[..].to_vec(); } + #[derive(Debug, Clone)] pub struct Signature { pub r_b8: Point,