FUNCTION

validate_auth_descriptor_rules

function validate_auth_descriptor_rules(rules: gtv)

Analyze the rules before assigning them to an auth descriptor, to check that they haven't already expired and that the values are sensible.

Can only be called from an operation.

Throws "INVALID RULES" when there are more than the max_rules configured in the chromia.yml file.

Throws "EXPIRED" when the rule set has expired.

Throws when rules is not the valid GTV representation of a rule.

Parameters

  • rules — the rules to analyze

See Also

© 2024 Chromia