Refactored Packet method names

This commit is contained in:
Mark Qvist 2021-05-16 16:42:07 +02:00
parent cd2f49272d
commit 55c0f44e58
5 changed files with 15 additions and 15 deletions

View file

@ -483,7 +483,7 @@ class Resource:
RNS.log("The contained exception was: "+str(e), RNS.LOG_DEBUG)
self.cancel()
def validateProof(self, proof_data):
def validate_proof(self, proof_data):
if not self.status == Resource.FAILED:
if len(proof_data) == RNS.Identity.HASHLENGTH//8*2:
if proof_data[RNS.Identity.HASHLENGTH//8:] == self.expected_proof: