-
Notifications
You must be signed in to change notification settings - Fork 0
CKCLI Get Started
Karthik Kumar Viswanathan edited this page Apr 6, 2021
·
2 revisions
git clone https://github.com/chainkit/ckcli.git
cd ckcli
which python3
which pip3
pip3 install -r requirements.txt --user --no-cache-dir
Open https://chainkit.com and sign up. If you have trouble doing that, reach out to support@chainkit.com
Get Coffee or something
Now, to use the CLI without much effort, either you set the CKUSER and CKPASS variables; Do not set them as plaintext, use the user's Keychain to do so. Better, set the CKTOKEN variable. Either way, it is recommended you use a Keychain.
bash
export CKUSER=testcliuser
export CKPASS='ChangeMe'
export PATH=$(pwd):$PATH
We usually use https://api.chainkit.com as the default endpoint. But Chainkit On-Prem allows you
to specify a different one, such as: export CKEP=https://your-chainkit.your-domain.com/
echo -n 'test' | openssl sha256
echo -n 'test' | openssl sha256 | awk '{print $2}'
export HASH=$(echo -n 'test' | openssl sha256 | awk '{print $2}')
echo $HASH
ckcli register -h "$HASH" -d "Hash generated at $(date)"
export ASSETID=6223799325706621234
export NHASH=$(echo -n 'test' | openssl sha256 | awk '{print $2}')
ckcli verify -h "$NHASH" -i "$ASSETID"
Copyright Chainkit 2021 | www.chainkit.com | info@chainkit.com | Twitter | LinkedIn | Facebook
Command Line Interface
See it in action
White Papers
Blog