pymensago/keycard.py
def verify_hash(self) -> RetVal:
		'''Checks that the entry's actual hash matches that in the hash field'''
		current_hash = CryptoString(self.hash)
		if not current_hash.is_valid():
			return RetVal(InvalidHash, f"{self.hash} is not a valid CryptoString")
		
		status = self.get_hash(current_hash.prefix)
		if status.error():
			return status
		
		return RetVal()
Checks that the entry's actual hash matches that in the hash field
Checks that the entry's actual hash matches that in the hash field
Checks that the entry ' s actual hash matches that in the hash field
def verify_hash(self) -> RetVal:
		current_hash = CryptoString(self.hash)
		if not current_hash.is_valid():
			return RetVal(InvalidHash, f"{self.hash} is not a valid CryptoString")
		status = self.get_hash(current_hash.prefix)
		if status.error():
			return status
		return RetVal()
def verify_hash ( self ) -> RetVal : current_hash = CryptoString ( self . hash ) if not current_hash . is_valid ( ) : return RetVal ( InvalidHash , f"{self.hash} is not a valid CryptoString" ) status = self . get_hash ( current_hash . prefix ) if status . error ( ) : return status return RetVal ( )
Checks that the entry's actual hash matches that in the hash field
Checks that the entry ' s actual hash matches that in the hash field
'''Checks that the entry's actual hash matches that in the hash field'''
self