Expand description
Utilities for RBAC registrations validation.
FunctionsΒ§
- catalyst_
id_ πfrom_ public_ key - Returns a Catalyst ID corresponding to the given public key.
- catalyst_
id_ πfrom_ stake_ address - Returns a Catalyst ID corresponding to the given stake address.
- catalyst_
id_ πfrom_ txn_ id - Returns a Catalyst ID corresponding to the given transaction hash.
- chain π
- Returns either persistent or βlatestβ (persistent + volatile) registration chain for the given Catalyst ID.
- is_
cat_ πid_ known - Returns
true
if there is at least one registration with the given Catalyst ID. - is_
chain_ known - Returns
true
if a chain with the given Catalyst ID already exists. - start_
new_ πchain - Tries to start a new RBAC chain.
- update_
chain π - Tries to update an existing RBAC chain.
- validate_
public_ πkeys - Checks that a new registration doesnβt contain a signing key that was used by any other chain. Returns a list of public keys in the registration.
- validate_
rbac_ registration - Validates a new registration by either starting a new chain or adding it to the existing one.