From b8dccde4c45b53e2f452f0901d7a6819719d7b37 Mon Sep 17 00:00:00 2001 From: Taylor Hornby Date: Thu, 22 Apr 2021 14:17:21 -0600 Subject: [PATCH] Update orchard_sinsemilla.py Co-authored-by: str4d --- orchard_sinsemilla.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchard_sinsemilla.py b/orchard_sinsemilla.py index 183b904..8b53a85 100755 --- a/orchard_sinsemilla.py +++ b/orchard_sinsemilla.py @@ -50,7 +50,7 @@ def expand_message_xmd(msg, dst, len_in_bytes): bi_input += i2beosp(8, i) + dst_prime - bi_ctx = blake2b(digest_size=64, person=i2beosp(128,0)) + bi_ctx = blake2b(digest_size=b_in_bytes, person=i2beosp(128,0)) bi_ctx.update(bi_input) b.append(bi_ctx.digest())