takeover tests fix

This commit is contained in:
Lex Berezhny 2021-12-19 18:03:07 -05:00
parent 4822792ee2
commit 486d5c48b0

View file

@ -1721,7 +1721,7 @@ def generate_signed_legacy(address: bytes, output: Output):
claim.SerializeToString(),
output.claim_hash[::-1]
]))
signature = output.private_key.sign_digest_deterministic(digest, hashfunc=hashlib.sha256)
signature = output.private_key.sign_compact(digest)
claim.publisherSignature.version = 1
claim.publisherSignature.signatureType = 1
claim.publisherSignature.signature = signature