# Functions
NewTrustPinChecker returns a new certChecker function from a TrustPinConfig for a GUN.
ValidateRoot receives a new root, validates its correctness and attempts to
do root key rotation if needed.
# Structs
ErrRootRotationFail is returned when we fail to do a full root key rotation by either failing to add the new root certificate, or delete the old ones.
ErrValidationFail is returned when there is no valid trusted certificates being served inside of the roots.json.
TrustPinConfig represents the configuration under the trust_pinning section of the config file This struct represents the preferred way to bootstrap trust for this repository.
# Type aliases
CertChecker is a function type that will be used to check leaf certs against pinned trust.