Usage - matamorphosis/Logchain GitHub Wiki
Usage for Logchain is really simple.
- To run a new ledger node:
user@linux:~/Logchain/lib$ python3 Logchain.py
- The same for the Backup agent, which backs up files in the provided source locations, and submits a checksum of each file it backs up to the ledger:
user@linux:~/Logchain/lib$ python3 Backup.py
- The Verify agent requires one parameter (-t, --tarfile) which requires one of the .tar.gz files supplied by the Backup.py script. This agent will iterate through each file in the tarfile, and attempt to verify the checksum against the ledger. Please note the block the checksums were added to have to be mined before the Verify agent can see them in the chain.:
user@linux:~/Logchain/lib$ python3 Verify.py -t 2020-02-02-20:48:45-home-Downloads-Tools-Logchain-lib-test_logs-backup.tar.gz