From 4870a17a1f578f44d62bc405841dae752fd4dae3 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini Date: Thu, 21 Dec 2023 18:03:15 -0300 Subject: [PATCH] fix cip14 fingerprint hash --- indexer/tasks/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indexer/tasks/src/utils.rs b/indexer/tasks/src/utils.rs index ca113aae..65f4434c 100644 --- a/indexer/tasks/src/utils.rs +++ b/indexer/tasks/src/utils.rs @@ -11,8 +11,8 @@ pub fn blake2b256(data: &[u8]) -> [u8; 32] { } // https://github.com/cardano-foundation/CIPs/pull/64 -pub fn blake2b160(data: &[u8]) -> [u8; 32] { - let mut out = [0; 32]; +pub fn blake2b160(data: &[u8]) -> [u8; 20] { + let mut out = [0; 20]; Blake2b::blake2b(&mut out, data, &[]); out }