You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get a signature line from the frontend that looks like this: 0x1d1b0779da653630d29fc4f1ea1e5a109a30d52e21e7657fa896d2fccc3b430b14089377e13b6ed35ef371a1c91873773d568219d1100fa8595e5f2eec39e3e41c (TronWeb signMessageV2 documentation example).
I'm trying to create a Signature object signature = Signature.fromhex(decoded_token['signature'][2:])
but I'm getting a tronpy.exceptions.BadSignature error due to assert signature_bytes[-1] in [0, 1]
What can I do?
The text was updated successfully, but these errors were encountered:
I get a signature line from the frontend that looks like this:
0x1d1b0779da653630d29fc4f1ea1e5a109a30d52e21e7657fa896d2fccc3b430b14089377e13b6ed35ef371a1c91873773d568219d1100fa8595e5f2eec39e3e41c
(TronWeb signMessageV2 documentation example).I'm trying to create a Signature object
signature = Signature.fromhex(decoded_token['signature'][2:])
but I'm getting a
tronpy.exceptions.BadSignature
error due toassert signature_bytes[-1] in [0, 1]
What can I do?
The text was updated successfully, but these errors were encountered: