Пример #1
0
 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))
Пример #2
0
 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))
Пример #3
0
 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))