Keygen
Table of Contents
Overview
This tool generates public and private key pairs for SPV Wallet applications. It can just print those keys or (by default) store it in the Kubernetes secret.
Usage
Running in Docker
Printing Keys
To print the keys, run the following command:
Kubernetes Secret Creation
Connect to Kubernetes cluster
To set the keys in kubernetes secret, you need to setup the image to have access to the namespace kubernetes cluster.
You can do this, for example, by creating a dedicated kubeconfig
file and mounting it to the container. Simplest way to do this is to mount your .kube/config
file to the container.
Configure the secret name
By default the secret name is spv-wallet-keys
. You can change it by using argument -s
or --secret
ℹ️ To configure k8s connection look at the section connect to kubernetes cluster
If you prefer to use environment variables, you can set the SECRET_NAME
environment variable instead.
Configure the key names
By default, the key names are admin_xpub
and admin_xpriv
. You can change it by using arguments -pb and -pv or --xpub-key and --xprv-key respectively.
ℹ️ To configure k8s connection look at the section connect to kubernetes cluster
If you prefer to use environment variables, you can set the XPUB_KEY_NAME
and XPRV_KEY_NAME
environment variables instead.
Running from source code
Alternatively, you can generate a key pair directly from the source code. To use the tool, simply run the following command:
and it will generate a new key pair for you and store it in two files: xpub_key.txt
and xpriv_key.txt
.
Last updated