pymensago/keycard.py
def is_compliant(self) -> RetVal:
		'''Checks the fields to ensure that it meets spec requirements. If a field causes it 
		to be noncompliant, the noncompliant field is also returned'''
		status = self.is_data_compliant()
		if status.error():
			return status

		# Ensure signature compliance
		for info in self.signature_info:
			if info['type'] == SIGINFO_HASH:
				if not self.hash:
					return RetVal(SignatureMissing, 'Hash')
				else:
					continue
			
			if info['optional']:
				# Optional signatures, if present, may not be empty
				if info['name'] in self.signatures and not self.signatures[info['name']]:
					return RetVal(SignatureMissing, '%s-Signature' % info['name'])
			else:
				if info['name'] not in self.signatures or not self.signatures[info['name']]:
					return RetVal(SignatureMissing, '%s-Signature' % info['name'])

		return RetVal()
Checks the fields to ensure that it meets spec requirements. If a field causes it 
		to be noncompliant, the noncompliant field is also returned
Checks the fields to ensure that it meets spec requirements. If a field causes it
to be noncompliant, the noncompliant field is also returned
Checks the fields to ensure that it meets spec requirements . If a field causes it to be noncompliant the noncompliant field is also returned
def is_compliant(self) -> RetVal:
		status = self.is_data_compliant()
		if status.error():
			return status
		for info in self.signature_info:
			if info['type'] == SIGINFO_HASH:
				if not self.hash:
					return RetVal(SignatureMissing, 'Hash')
				else:
					continue
			if info['optional']:
				if info['name'] in self.signatures and not self.signatures[info['name']]:
					return RetVal(SignatureMissing, '%s-Signature' % info['name'])
			else:
				if info['name'] not in self.signatures or not self.signatures[info['name']]:
					return RetVal(SignatureMissing, '%s-Signature' % info['name'])
		return RetVal()
def is_compliant ( self ) -> RetVal : status = self . is_data_compliant ( ) if status . error ( ) : return status for info in self . signature_info : if info [ 'type' ] == SIGINFO_HASH : if not self . hash : return RetVal ( SignatureMissing , 'Hash' ) else : continue if info [ 'optional' ] : if info [ 'name' ] in self . signatures and not self . signatures [ info [ 'name' ] ] : return RetVal ( SignatureMissing , '%s-Signature' % info [ 'name' ] ) else : if info [ 'name' ] not in self . signatures or not self . signatures [ info [ 'name' ] ] : return RetVal ( SignatureMissing , '%s-Signature' % info [ 'name' ] ) return RetVal ( )
Checks the fields to ensure that it meets spec requirements.
Checks the fields to ensure that it meets spec requirements .
'''Checks the fields to ensure that it meets spec requirements. If a field causes it 
		to be noncompliant, the noncompliant field is also returned''' # Ensure signature compliance # Optional signatures, if present, may not be empty
self