diff --git a/src/pcd.rs b/src/pcd.rs index 72bc143..dd5ee2e 100644 --- a/src/pcd.rs +++ b/src/pcd.rs @@ -85,10 +85,10 @@ impl AnkPcdHash { } /// Adding the root_commitment guarantee that the same clear value across different processes wont' produce the same hash - pub fn from_value_with_outpoint(value: &Value, outpoint: &[u8]) -> Self { + pub fn from_value_with_outpoint(value: &[u8], outpoint: &[u8]) -> Self { let mut eng = AnkPcdHash::engine(); eng.input(outpoint); - eng.input(value.to_string().as_bytes()); + eng.input(value); AnkPcdHash::from_engine(eng) } }