Closed miaozjs closed 2 years ago
error with this function def sig_to_vrs(sig):
r = int(sig[2:66], 16) s = int(sig[66:130], 16) v = int(sig[130:], 16) return v, r, s
error: ValueError: invalid literal for int() with base 16: 'x13a288e1f37f887232928280b1be88f4c9fd26893bf39675a74aa89125ebc20'
my signdata: ‘0x13a288e1f37f887232928280b1be88f4c9fd26893bf39675a74aa89125ebc20b5902dd94311502aabf8499e063b74b044a8d72f4748b3e217eef4e289984db701b’
Description
error with this function def sig_to_vrs(sig):
sig_bytes = bytes.fromhex(sig[2:])
error: ValueError: invalid literal for int() with base 16: 'x13a288e1f37f887232928280b1be88f4c9fd26893bf39675a74aa89125ebc20'
my signdata: ‘0x13a288e1f37f887232928280b1be88f4c9fd26893bf39675a74aa89125ebc20b5902dd94311502aabf8499e063b74b044a8d72f4748b3e217eef4e289984db701b’