From 8c2275a4b55b0d204ff9a1f41430e52f2e55dc37 Mon Sep 17 00:00:00 2001 From: Taylor Hornby Date: Thu, 22 Apr 2021 14:17:12 -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 979737c..183b904 100755 --- a/orchard_sinsemilla.py +++ b/orchard_sinsemilla.py @@ -38,7 +38,7 @@ def expand_message_xmd(msg, dst, len_in_bytes): b.append(b0_ctx.digest()) assert len(b[0]) == b_in_bytes - b1_ctx = blake2b(digest_size=64, person=i2beosp(128,0)) + b1_ctx = blake2b(digest_size=b_in_bytes, person=i2beosp(128,0)) b1_ctx.update(b[0] + i2beosp(8, 1) + dst_prime) b.append(b1_ctx.digest()) assert len(b[1]) == b_in_bytes