Module validation

Module validation 

Source
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.