From f03b1594af0eb5d581fe659f3cb3afe942706da6 Mon Sep 17 00:00:00 2001 From: Sosthene Date: Wed, 11 Dec 2024 23:20:25 +0100 Subject: [PATCH] AnkPcdHash from_value_with_outpoint takes &[u8] --- src/pcd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }