Module util

Module util 

Source
Expand description

Helper functions for VOA trust model business logic

EnumsΒ§

RevokedCertification πŸ”’
Models the revocation status of an OpenPGP component.

FunctionsΒ§

extract_domain_from_user_id πŸ”’
Returns the domain name in an OpenPGP User ID string, if one is found.
find_signed_user πŸ”’
Finds the [SignedUser] that matches a user_id.
fingerprint_matches πŸ”’
Checks whether an OpenpgpCert matches a set of OpenpgpFingerprints.
identity_bound_at πŸ”’
Ensures that sigs contains a certifying signature that is valid at reference_time, for self-binding an identity to cert.
is_certification_revocation πŸ”’
Checks if sig is a certification revocation signature, and if so, if it’s β€œhard” or β€œsoft”.
is_soft_revocation_reason πŸ”’
Checks for explicitly β€œsoft” reason codes. In all other cases, we consider a revocation to be β€œhard”.
log_cert_data πŸ”’
Creates a representative string for logging from an OpenpgpCert.
log_sig_data πŸ”’
Creates a representative string for logging from an OpenpgpSignature.
user_id_matches_any πŸ”’
Checks whether an OpenPGP User ID matches any domain name in a set of domain names.
user_id_matches_domain πŸ”’
Checks whether an OpenPGP User ID matches a domain name.