Fixes encoding error.
This commit is contained in:
parent
b0a4138e48
commit
4f99529924
@ -81,7 +81,7 @@ def hashed_token_proof(token_proof: dict) -> str:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
hash_object = hashlib.new("sha256")
|
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()
|
return hash_object.digest().hex()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user