This repository provide a simple console application for secure keys generation to use with Schnorr signatures, and FROST protocol participants.
keygen
randomly generated key pair and prints it to stdout or specified file, depending on the provided arguments
(please see below or help command for details).
Schnorr signatures standard is described in
Bitcoin Improvement Proposal #0340 requires
public keys being with valid odd Y coordinate.
So this project is aimed to simplify keys generation for users convenience.
Readme is based on the latest published version at the moment v1.0.0
The keygen can be installed in the following ways:
- Binary download from the GitHub releases page: https://github.com/stroomnetwork/keygen/releases/tag/v1.0.0
- Download as Docker image by
docker pull stroomnetwork/keygen:v1.0.0
- (For Go users) install into GOBIN directory by
go install github.com/stroomnetwork/keygen/cmd/[email protected]
To generate a key pair and print it to console, run the following command:
keygen generate
To generate a key pair into a file simply invoke:
keygen generate -o keys.json
This will create a keys.json
file in the workdir containing JSON with public key and private key fields.
The same command for docker image would be:
docker run -v ./:/keygen stroomnetwork/keygen:v1.0.0 generate -o tmp.json
Please note that we need to correctly mount host directory with docker container.