okota/python
Mohamed Sohail 9bad5b5ccf
Sohail/fix duplicate token entry base 0.4.0 (#3)
* feat: remove unique token check from register fn

* tests: add duplicate entry test

- add FOO
- add FOO

* bump: v0.4.1
2022-06-23 12:22:57 +03:00
..
okota Sohail/fix duplicate token entry base 0.4.0 (#3) 2022-06-23 12:22:57 +03:00
tests Sohail/fix duplicate token entry base 0.4.0 (#3) 2022-06-23 12:22:57 +03:00
CHANGELOG Upgrade eth-address-index 2022-02-21 08:23:51 +00:00
LICENSE Add contract registry 2021-10-06 12:18:00 +02:00
MANIFEST.in Add contract registry 2021-10-06 12:18:00 +02:00
README.md Mo better docs 2022-02-21 16:24:18 +00:00
requirements.txt Upgrade deps 2022-04-20 22:01:28 +00:00
run_tests.sh Rehabilitate tests 2021-11-13 07:13:27 +01:00
setup.cfg Sohail/fix duplicate token entry base 0.4.0 (#3) 2022-06-23 12:22:57 +03:00
setup.py Initial commit 2021-10-04 16:32:39 +02:00
test_requirements.txt Initial commit 2021-10-04 16:32:39 +02:00

README.md

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.

In all the below:

  • contract_address is the address of the deployed Address Declarator contract.
  • subject_address is the address a declaration is being made about.
  • declarer is the entity making a declaration about the subject_address.
  • proof a 256-bit proof

Contract declaration translations

registry call declarer 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 <contract_address> -a <declarer_address> <subject_address>

Add arbitrary other proofs with CLI

eth-accounts-index-add -e <contract_address> -y <declarer_keyfile> -a <subject_address> <proof>