Module rules

Module rules 

Source
Expand description

Implementation of RIP-0004 Canonical References

RawRules is intended to be deserialized and then validated into a set of Rules. These can then be used to see if a Qualified reference matches any of the rules, using Rules::matches. Using Canonical with the first matched rule, and this can be used to calculate the Canonical::quorum.

Structs§

MatchedRule
A reference that has been matched against a ValidRule.
Pattern
A Pattern is a QualifiedPattern reference, however, it disallows any references under the refs/rad hierarchy.
RawRules
A set of RawRules that can be serialized and deserialized.
Rule
A Rule defines how a reference or set of references can be made canonical, i.e. have a top-level refs/* entry – see Pattern.
Rules
A set of valid Rules, where the set of DIDs and threshold are fully resolved and valid. Since the rules are constructed via a BTreeMap, they cannot be duplicated.

Enums§

Allowed
A representation of a set of allowed DIDs.
CanonicalError
PatternError
ResolvedDelegates
A marker enum that is used in a ValidRule.
ValidationError

Type Aliases§

RawRule
A Rule that can be serialized and deserialized safely.
ValidRule
A Rule that has been validated. See Rules and Rules::matches for its main usage.