Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
README - update
Browse files Browse the repository at this point in the history
  • Loading branch information
rinor committed Oct 13, 2020
1 parent 97c076a commit 7f7aece
Showing 1 changed file with 59 additions and 1 deletion.
60 changes: 59 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,59 @@
# vit_ked_qr
# vit-kedqr

Tool to encrypt an ed25519extended private key and build/display a qr code with encryted data.
Used/needed for Catalyst project.

## Installation
- Download the latest release from releases page [https://github.com/input-output-hk/vit-kedqr/releases](https://github.com/input-output-hk/vit-kedqr/releases)
- or if you have [Go](https://golang.org/dl) installed use: `go get github.com/input-output-hk/vit-kedqr`
- if you want to build from the source use ie: `CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" main.go`

### Usage

1. Generate an ed25519extended private key by using [jörmungandr](https://github.com/input-output-hk/jormungand) **jcli** binary
- `jcli key generate --type ed25519extended test-key.sk`
and you will get a new file `test-key.sk` containing the bech32 encoded key, ie: `ed25519e_sk14rwkgpmmg5s29e4k8m4mny324lj4rv8x9tqg0tn5khlfqzgjt9ftj90u642j2skwraddf2qd88eqv8wv3a463mshgmz9dxtvthjswgqvcdwty`

2. Use `vit-kedqr` binary to build your encrypted qr code with your provided pin code (4-digit number is expected for now)
- `vit-kedqr -input=test-key.sk -pin=1234 -output=qr-test-key.png` will output the qr code on the provided .png file **qr-test-key.png**.
- `vit-kedqr -input=test-key.sk -pin=1234` will do the same as the previous command, but insted of file the output will be printed out on the console ie:
```
█████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████
████ ▄▄▄▄▄ ███▄█ ▀▄█▀▀▄█ ▄█ ▀ █▄█▀ ▀▀▄▀█▀▄▀▄█▀▄█▀▀▀▄ █ █ ▄▄▄▄▄ ████
████ █ █ █ ▀▀▀▀██ ▄▄█▀▄▄ ▀█▄▀▀▄▀ ▄█▄▀▀█▀▄▀ ▀▄██▄▀▀ ▄ █ █ █ ████
████ █▄▄▄█ █ ▀█▀▄▀▀▄▄█▄▄▀▀█▀▀▀▄ ▄▄▄ ▄█ ▀▀█ █▀ ██ ██▄▄ ▄██ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ ▀ ▀ █▄▀▄▀ ▀ ▀ █ █▄▀ █▄█ █▄█▄█▄█ █ ▀ █▄▀▄█ ▀▄█▄▄▄▄▄▄▄████
████▄▀ ▄ ▄▄██ ▀▀▄█ ▀▄▄ █▄▄█▀▀█▄ ▄ ▄▄ ▄ ▄ ▀▄▀██ ▄▀ ██▀▄█ ▄▄▄▀█████
████▄▀▀▀ ▄▄ █▄▀██▄▄ ▀ ▄▀▄ ▄ █▀▄█▀▄▀▄▄▄▄▀▄█▀▄▀▄▀█▄█▄ ▄▄▄ ▀ ▀▄▄█ ████
██████ ▄ █▄██ █ ▄ ▀▄█ █▄██▀▄▀▀▀█▄█▀▀ ▄▄▄█▄▄▀█▀ █▀▄▄ ██▀▄▀▀█▀▄▄ ▄████
█████▄▀▀▄▄▄ █ ▄█▄▄█▄▄▄▄▄ ▀▄ █▄▀▄▄█ ▀█▀▄█ ▄▄▀█▄▀██▀▄█▄▄ █▄██▀▀█▄▀ ████
███████▄█▄▄██▀ █▀ ▄▀ █▀▀ ▀ ▀▀▀▀█ ▀█ ▀▄▄██▄▀ ▄ ▄ ██ ▄ █▄▄▀ ██ ▄▀▄████
█████▄██▄▀▄██▀█▄ █▀██ ▄ ▄ ▀ ▄ ▀▄▀ ▀█▄ █▄▄▀ ▀ ▄▄▄█▄ ▄█▀▀ ██▄████
████ █ █▀█▄ ▄█ ▀ ▀ ▀██▄ █▀▄▄▄▄ ██▀▀▀ █▀ █▄█▀▄ ███▄▄ ▄▄▀▄▄ █▀▀▄▀█████
██████▄█▄ ▄▀██▀███▀▄ ▄█▀▄ ██▄█▄▀▄ ▀██ ▀▄ █▀ █ ▀▄ ▀▄ ▄██ ▀▀▀▀▄▀ ████
████▄▀ ▄█▄▄▀▀▄▀▄ ▄▄▀█▄█ █ █▀▄▀▀▄ ▄ ▀▄▄ ▀▄▀ █▀█▀▀▄ █▄██▀▄▄ █▀█▄▄▄████
████▄███▄▀▄ ▀▄▄▄██▀█▄ ▀ ▀▀█▀█▄▀▄▄▄▀▀█▄█▀▄▀█▄ ▀ ▀▄█ ▄▄ ▄█ ▀▄▀ █ ████
█████▀▀ ▄▄▄ ▄█▀██▄ █ ▀ ▄▀█▄▀▀▀▄ ▄▄▄ █▀ ▄█ █▄ ▀█ ▄▀▄ ██ ▄▄▄ █▄▄▄████
████ ▀▀ █▄█ ██▄ ▄ ▄ ▄▀ █ ▄█▀ ▀ █▄█ ▀ ▄▄▄▄█▀▄██▀█▄▀▄█▄ █▄█ ▄▄ ████
████▀█▀▄ ▄▄▄▀▀ ▄█▄▀▀ ▄▀▄▄▀▄▀▀▀▄ ▄▄▄ █▄▄█▄ █▀ █▀▄█ ▄▄▄ ▄ ▄█▄▄▄████
████▄▄█ ▄▄▄▄█▄▄██▄█▀▀▀█▄▄ ▀▀ ▄ ▀▄█▄▀ ▄▄▄███ █▀▄▀▄ ▄▄▄▄▄ ▄ ▄ ████
████▀▄█▀▄▄▄▄▀█ ▄▀▄▀█▄▀█▀▄▀▀▀▄▀▄▀▀▄▄▄██▀ █▄█ ▀█▀█▀ ██▄▀█▄▀▄▀▄ ████
█████▄▀▀▀█▄▀█▀ ▀██▀▀▄███ ██▄▀▀█▄▄█▄▄▄ ▄▀▄█ ▄▀██▀▀▀▄▀▄ ▄▄▄▀▄ ▄▀█▄▀████
████ ▄█▀ ▄█ █ ▄ ▄ ▀█▄▀ █▄ ▀█▄▄▀▄▄█▀▄▀▄ █ ▀█ ▀▀ ▄█ ▄█▄▄█▄▄▄█▄█▄████
████▄▄▄ █▄▄█ ▀ ▀▄▄▀▀█ █▄▄█▄ █▄▀▀▄▄▄▀▄ ▄█▄▄▀▄▀ ▀▀▄▄▄▄▄▄▀▄▄█▄█▄▄ ████
████ █ ▄█ ▄▀▀▀ █▀▄▄▀█▄▄ ▄▄▀▀▀ ▄▀▄▀█▀██ ▄█ █▄ █▀▀█ ▄▀█ ▄ ▄▄ ▄▄████
████ ▄██ ▄ █▄▀▀ ▀▄▄▀▀▄ ▀▄▄ ▄█ ▄▄█▄▄███▄▄▀ ▀ ▀▀█▀▄█▄█▄▄▄▄█▀█▄ ████
████▄ ██▄▄▄▄ ▀▀▀ █ ▀ ▀▄█▀▀▄▀▀▄▀▄▀▄▀▄███▄ ▀██▀█ ██▄██▄▄▄▄█▄▄▀▄▀▄ ▄████
████▀▀ ▄ ▄▄ █ ▀▀▀▄▀ ▀█▀█▄▄█ ▄▀ ██▄▀▀ ▄▄▄█▄█▀▄▀ ▀ ▄▀▄▄▄▄▄▀▄ ██▄█▄████
████▄▄▄▄██▄▄ ▀▀▀ █▀██ ▄ ▀▄▀▀▀▀▀▀ ▄▄▄ █▄▄▄█▄ ▀█▀█▀█▄█▄▄█ ▄▄▄ ▄████
████ ▄▄▄▄▄ █▀▄▄ ▄ ▀█▄█ ▄█▄ ▀▀▀██ █▄█ ▄▄█ ▄ █▄▀██ ▄▄▄▀ █▄█ ▄█▀▄████
████ █ █ █ █▄ ▄█▀▀███ ▀▀▀▀ ▄ ▄ ██▄███▀ █▀▄ ▀██▄▀█ ▄▄█ ████
████ █▄▄▄█ █▄ ▀ ▀ ▀ █ ▀█ ██▀▄ ▀██ ▄ █▄▄█ ▀ █▄█▄█▄▀▀▀▀██ ▄█ ████
████▄▄▄▄▄▄▄█▄█▄▄▄▄████▄██▄██▄▄▄███▄██▄██▄▄▄▄█▄███▄█▄▄█▄▄███▄██▄▄▄████
█████████████████████████████████████████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
```

3. Scan the qr code with the Catalyst voting app.

0 comments on commit 7f7aece

Please sign in to comment.