A command-line tool for interacting with the ChainKit API, written in Python.
ChainKit facilitates the registration and later validation of the integirty of digital assets.
pip install -r requirements.txt
ckcli --help
ckcli [command] --help
In order to interact with ChainKit you must provide your username and password to get an auth token. Set the auth token in the CKTOKEN environment variable with the following command:
export CKTOKEN=$(ckcli token --username [username] --password [password] | awk '{print $2}')
To register a hashed entity with the server, you supply your token and a hash of your asset. (this could be a file hash or anything really)
HASH=$(echo -n 'MySpecialText'| openssl sha256 | awk '{print $2}')
ckcli register --hash $HASH
This will return an "Entity ID" which you can later use to...
Provide the hash and the entity id returned during registration in order to verify the integrity of your hash:
ckcli verify --hash $HASH --id [entity_id]
ckcli get