update doctest in gtest suite to prefer hashlib
This commit is contained in:
parent
fbbdb23214
commit
30abf25148
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue