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. - 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 – seeRawPattern. - 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 - Resolved
Delegates - A marker
enumthat is used in aValidRule. - Validation
Error
Type Aliases§
- RawPattern
- RawRule
- A
Rulethat can be serialized and deserialized safely. - Valid
Rule - A
Rulethat has been validated. SeeRulesandRules::matchesfor its main usage.