Keygen
Last updated
Was this helpful?
Last updated
Was this helpful?
🔗
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.
To print the keys, run the following command:
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
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.
If you prefer to use environment variables, you can set the XPUB_KEY_NAME
and XPRV_KEY_NAME
environment variables instead.
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
.
ℹ️ To configure k8s connection look at the section
ℹ️ To configure k8s connection look at the section