@@ -41,7 +41,7 @@ def get_public_key(self, compact_signature, hash_):
4141 return public_key
4242
4343 def recover_sender (self ):
44- signature_with_recid = self .get_signature ()
44+ signature_with_recid = self ._get_signature ()
4545 if not signature_with_recid :
4646 return False
4747
@@ -51,7 +51,7 @@ def recover_sender(self):
5151 self .data ['senderAddress' ] = Address .from_public_key (self .data ['senderPublicKey' ])
5252
5353 def verify (self ) -> bool :
54- signature_with_recid = self .get_signature ()
54+ signature_with_recid = self ._get_signature ()
5555 if not signature_with_recid :
5656 return False
5757
@@ -79,7 +79,7 @@ def to_json(self) -> str:
7979 def hash (self , skip_signature : bool ) -> str :
8080 return TransactionUtils .to_hash (self .data , skip_signature = skip_signature )
8181
82- def get_signature (self ):
82+ def _get_signature (self ):
8383 recover_id = int (self .data .get ('v' , 0 )) - Constants .ETHEREUM_RECOVERY_ID_OFFSET .value
8484 r = self .data .get ('r' )
8585 s = self .data .get ('s' )
@@ -90,7 +90,7 @@ def get_signature(self):
9090 return None
9191
9292 @staticmethod
93- def decode_payload (data : dict , abi_type : ContractAbiType = ContractAbiType .CONSENSUS ) -> Optional [dict ]:
93+ def _decode_payload (data : dict , abi_type : ContractAbiType = ContractAbiType .CONSENSUS ) -> Optional [dict ]:
9494 from crypto .transactions .deserializer import Deserializer
9595
9696 return Deserializer .decode_payload (data , abi_type )
0 commit comments