Skip to content

chainkit/ckgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ckgit - Git Scripts for Chainkit

These are Chainkit's Git Plugins for Git Hardening.

Usage

This is our blog post explaining how the hardening mechanism works. In short, it allows you to check if a Git Commit was registered to a blockchain, and you can verify it later.

Pre-Requisites

This project requires you to have the Chainkit CLI to be installed and configured in the PATH.

It requires you to set the CKTOKEN or CKUSER CKPASS variables correctly.

Then you finally clone this repo, and add it to your PATH, so that git can find these plugins.

Basic Workflow

Step 1: Fetch Notes

git nfetch

Step 2: Register New Commit

git register

Step 3: View and Verify Registered Commit

git log

commit 1234567689012345678901234567890123456789
Author: Blah Blah <blah@blah.com>
Date:   Mon Mar 1 12:34:56 2021 -0500

    Your Commit

Notes:
    Asset Id: 1234567890123456789, Storage: pencil
git verify

Step 4: Synchronize Notes

git nsync

Advanced Workflow

Backfilling All Commits

  1. First, fetch existing notes.
git nfetch
  1. Then parallelize register.
git list | tac | xargs -L1 -P32 git register
  1. Then parallelize verify.
git list | tac | xargs -L1 -P32 git verify
  1. Then synchronize.
git nsync

Feedback

Send any feedback to us. We'd love to hear from you.

About

Git Scripts for Chainkit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages