update doctest in gtest suite to prefer hashlib

This commit is contained in:
zancas 2022-01-11 10:32:18 -07:00
parent fbbdb23214
commit 30abf25148
No known key found for this signature in database
GPG Key ID: 6DB04B434E55B7BF
1 changed files with 2 additions and 2 deletions

View File

@ -221,11 +221,11 @@ TEST(Joinsplit, HSig)
/* /*
// by Taylor Hornby // by Taylor Hornby
import pyblake2 import hashlib
import binascii import binascii
def hSig(randomSeed, nf1, nf2, joinSplitPubKey): def hSig(randomSeed, nf1, nf2, joinSplitPubKey):
return pyblake2.blake2b( return hashlib.blake2b(
data=(randomSeed + nf1 + nf2 + joinSplitPubKey), data=(randomSeed + nf1 + nf2 + joinSplitPubKey),
digest_size=32, digest_size=32,
person=b"ZcashComputehSig" person=b"ZcashComputehSig"