Files
okota/python
2022-02-21 16:13:42 +00:00
..
2022-02-20 05:22:14 +00:00
2022-02-21 08:23:51 +00:00
2021-10-06 12:18:00 +02:00
2021-10-06 12:18:00 +02:00
2022-02-21 16:13:42 +00:00
2022-02-21 08:23:51 +00:00
2021-11-13 07:13:27 +01:00
2022-02-21 08:23:51 +00:00
2021-10-04 16:32:39 +02:00
2021-10-04 16:32:39 +02:00

Okota

Okota implements smart contract registries for the CIC network with the Address Declarator backend.

For every entry added to the registry, a declaration is added aswell.

Contract declaration translations

registry call declarator subject proof
ContractRegistry.set(registry_identifier, contract_address) sender contract_address registry_identifier
AccountsIndex.register(wallet_address) sender wallet_address token address of accounts index
TokenRegistry.registry(token_address) sender token_address sha256(token symbol)

Query the declarator with CLI

eth-accounts-index-view -e <declarator_contract> -a <declarator_address> <subject_address>

Add arbitrary other proofs with CLI

eth-accounts-index-add -e <declarator_contract> -y <keyfile_of_declarator> -a <subject_address> <256 bit proof in hex>