Key-generator
Requirements
This project uses golang.
To compile on Ubuntu/Debian, you may need to install the libgl1-mesa-dev
and xorg-dev
packages, and have GCC installed.
Tested versions
In order to run the project properly, some tools are required:
Installation
Refer to the cross-compiling section below.
For the GUI :
Install go-bindata:
go get -u github.com/go-bindata/go-bindata
Generate assets:
go generate gui/main.go
build/key-generator-gui-[linux-amd64] //[replace with your OS]
For the CLI :
build/goreleaser/cli-build_[linux_amd64]/key-generator-cli //[replace with your OS]
Commands
Command |
Usage |
Possible flag |
Example |
gen-ed |
Generates an ED25519 key pair. |
--save filePath to save the keys to a given file |
bash build/key-generator genEd --save ~/filePath |
gen-x |
Generates an ED25519 key pair. |
--save filePath to save the keys to a given file |
bash build/key-generator genX --save ~/filePath |
Releases
You'll find the release binaries under the build
folder. Run it like the above using the path corresponding path.
Cross-compiling
To cross-compile for Windows and MacOS, build the Dockerfile and use the corresponding image.
For example, from the root, run :
docker run -v ${PWD}:/app transchain/golang-crosscompile:v1.0.0 goreleaser --rm-dist --skip-publish --snapshot