From 756abfbb9c1f165e669699a3453f329d91136745 Mon Sep 17 00:00:00 2001 From: Taylor Hornby Date: Thu, 22 Apr 2021 14:36:38 -0600 Subject: [PATCH] Delete sinsemilla_hash_bytes which was unused and not guaranteed to have correct endianness --- orchard_sinsemilla.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/orchard_sinsemilla.py b/orchard_sinsemilla.py index b64fae1..054d4a0 100755 --- a/orchard_sinsemilla.py +++ b/orchard_sinsemilla.py @@ -166,10 +166,6 @@ def sinsemilla_hash_to_point(d, m): def sinsemilla_hash(d, m): return sinsemilla_hash_to_point(d, m).extract() -def sinsemilla_hash_bytes(d, m_bytes): - assert isinstance(m_bytes, bytes) - return sinsemilla_hash(d, BitArray(m_bytes)) - if __name__ == "__main__": # This is the Pallas test vector from the Sage and Rust code (in affine coordinates). gh = group_hash(b"z.cash:test", b"Trans rights now!")