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§
- Matched
Rule - A reference that has been matched against a
ValidRule. - Pattern
- A
Patternis aQualifiedPatternreference, however, it disallows any references under therefs/radhierarchy. - RawRules
- A set of
RawRules that can be serialized and deserialized. - Rule
- A
Ruledefines how a reference or set of references can be made canonical, i.e. have a top-levelrefs/*entry – seePattern. - Rules
- A set of valid
Rules, where the set of DIDs and threshold are fully resolved and valid. Since the rules are constructed via aBTreeMap, they cannot be duplicated.
Enums§
- Allowed
- A representation of a set of allowed DIDs.
- Canonical
Error - Pattern
Error - Resolved
Delegates - A marker
enumthat is used in aValidRule. - Validation
Error