Sign inSign up

bsvb/spv-wallet-admin-keygen

By bsvb

•Updated over 2 years ago

Tool for generating admin key for spv-wallet toolkit

Image
0

2.0K

bsvb/spv-wallet-admin-keygen repository overview

⁠SPV Wallet Admin Keygen

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.

⁠Printing Keys

To print the keys, run the following command:

docker run bsvb/spv-wallet-admin-keygen:latest --print --no-k8s

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

docker run -v {my/kube/config/file}:/kubeconfig -e KUBECONFIG=/kubeconfig bsvb/spv-wallet-admin-keygen:latest
⁠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⁠

docker run bsvb/spv-wallet-admin-keygen:latest --secret my-secret-name

If you prefer to use environment variables, you can set the SECRET_NAME environment variable instead.

docker run -e SECRET_NAME=my-secret-name bsvb/spv-wallet-admin-keygen:latest
⁠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⁠

docker run bsvb/spv-wallet-admin-keygen:latest --xpub-key my-xpub-key-name --xprv-key my-xpriv-key-name

If you prefer to use environment variables, you can set the XPUB_KEY_NAME and XPRV_KEY_NAME environment variables instead.

docker run -e XPUB_KEY_NAME=my-xpub-key-name -e XPRV_KEY_NAME=my-xpriv-key-name bsvb/spv-wallet-admin-keygen:latest

Tag summary

Content type

Image

Digest

sha256:d7086db2d…

Size

103.5 MB

Last updated

over 2 years ago

docker pull bsvb/spv-wallet-admin-keygen