Fixes encoding error.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user