Skip to content

stroomnetwork/keygen

Repository files navigation

Keygen

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).

Motivation

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.

Installation

Readme is based on the latest published version at the moment v1.0.0

The keygen can be installed in the following ways:

How To Use

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.