def recoverTransaction(self, serialized_transaction): txn_bytes = HexBytes(serialized_transaction) txn = Transaction.from_bytes(txn_bytes) msg_hash = hash_of_signed_transaction(txn) if sys.version_info.major < 3: msg_hash = to_hex(msg_hash) return self.recover(msg_hash, vrs=vrs_from(txn))
def recoverTransaction(self, serialized_transaction): txn_bytes = HexBytes(serialized_transaction) txn = Transaction.from_bytes(txn_bytes) msg_hash = hash_of_signed_transaction(txn) return self.recover(msg_hash, vrs=vrs_from(txn))