Skip to content
Snippets Groups Projects
Commit fa47135d authored by matograine's avatar matograine Committed by Vincent Texier
Browse files

[fix] 143: correctly sign the block.

parent 9db13fa7
No related branches found
No related tags found
2 merge requests!128Release 0.62.0,!122#143 block inner hash and sign
Pipeline #11034 failed
...@@ -550,7 +550,10 @@ Nonce: {nonce} ...@@ -550,7 +550,10 @@ Nonce: {nonce}
Warning : current signatures will be replaced with the new ones. Warning : current signatures will be replaced with the new ones.
""" """
key = keys[0] key = keys[0]
signed = self.raw()[-2:] signed = "InnerHash: {inner_hash}\nNonce: {nonce}\n".format(
inner_hash=self.inner_hash,
nonce=self.nonce,
)
signing = base64.b64encode(key.signature(bytes(signed, "ascii"))) signing = base64.b64encode(key.signature(bytes(signed, "ascii")))
self.signatures = [signing.decode("ascii")] self.signatures = [signing.decode("ascii")]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment