This repository has been archived by the owner on Jul 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |