Using Chaucha blockchain, commits can be certified using OP_RETURN. Now Github history can be notarized.
Using a mixture of OP_RETURN
and Git Notes we can
notarize each commit.
name: Integration Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Self test
id: selftest
uses: proyecto-chaucha/chaucha-gha-opreturn@master
with:
privkey: "${{secrets.PRIVKEY}}"
pubkey: "${{secrets.PUBKEY}}"
sendkey: "${{secrets.SENDKEY}}"
message: "repo: ${{github.repository}};branch: ${{github.ref}};commit: ${{github.sha}}"
# Save certification using git-notes
- run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git fetch origin "refs/notes/*:refs/notes/*"
git notes append -m "repo: $GITHUB_REPOSITORY ; branch: $GITHUB_REF ; commit: $GITHUB_SHA ; tx: ${{steps.selftest.outputs.response}}"
git push origin "refs/notes/*"
Input | Description |
---|---|
privkey |
Private Key to sign transaction. Use PRIVKEY in Github Secrets. |
pubkey |
Public key of the Private key to verify confirmations. Use PUBKEY in Github Secrets. |
sendkey |
Public key to send the transaction. Use SENDKEY in Github Secrets. |
message |
Message to send with OP_RETURN . Max 255 chars. |
Output | Description |
---|---|
response |
Response with the OP_RETURN result message |