Fixes encoding error.

This commit is contained in:
PhilipWafula 2021-11-05 14:11:44 +03:00
parent b0a4138e48
commit 4f99529924
Signed by untrusted user: mango-habanero
GPG Key ID: B00CE9034DA19FB7
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def hashed_token_proof(token_proof: dict) -> str:
"""
hash_object = hashlib.new("sha256")
hash_object.update(json.dumps(token_proof))
hash_object.update(json.dumps(token_proof).encode('utf-8'))
return hash_object.digest().hex()