Author : Victor Mak (Htet Aung Hlaing)
- An emulated government database with citizen data (does not have to be real), a hash of aforementioned metadata, private key and public key
- An emulated government blockchain with Maschain with Audit Service enabled that have one Auditing Smart Contract stores the hash of the public key exposed
- An emulated government api service that exposes all the public key data, a hash of those public keys (to ensure the government does not went wrong internally) is kept on the blockchain and txID is made public for everybody to see and recheck themselves as necessary
- Using the
data-setup.py
an emulated database will be setup as per the requirement - Also in the
data-setup.py
the hash of all the public keys is stored on a blockchain audit smart contract for auditting purposes government-service-api.py
exposes three apis to the public- Get the public keys of all the citizens
- Get the latest transaction hash
- Get the hash of the public keys
To set things up easily, I have quickly created a Makefile.
make install
- Install the necessary python packages
make setup
- clean the database and set up a new database
make
- install the packages
- starts the api server