Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitcoin-sv/spv-wallet-admin-keygen
Tool for generating admin key for spv-wallet toolkit
https://github.com/bitcoin-sv/spv-wallet-admin-keygen
bsv bux k8s kubernetes spv-wallet spv-wallet-team spv-wallet-toolkit xpriv xpub
Last synced: about 2 months ago
JSON representation
Tool for generating admin key for spv-wallet toolkit
- Host: GitHub
- URL: https://github.com/bitcoin-sv/spv-wallet-admin-keygen
- Owner: bitcoin-sv
- License: mit
- Created: 2023-12-21T11:01:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-25T11:50:58.000Z (6 months ago)
- Last Synced: 2024-06-25T13:16:05.522Z (6 months ago)
- Topics: bsv, bux, k8s, kubernetes, spv-wallet, spv-wallet-team, spv-wallet-toolkit, xpriv, xpub
- Language: Shell
- Homepage: https://docs.bsvblockchain.org/network-topology/applications/spv-wallet
- Size: 42 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.DOCKER.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
docker run ${DOCKER_IMAGE}: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.```bash
docker run -v {my/kube/config/file}:/kubeconfig -e KUBECONFIG=/kubeconfig ${DOCKER_IMAGE}: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](#connect-to-kubernetes-cluster)
```bash
docker run ${DOCKER_IMAGE}:latest --secret my-secret-name
```If you prefer to use environment variables, you can set the `SECRET_NAME` environment variable instead.
```bash
docker run -e SECRET_NAME=my-secret-name ${DOCKER_IMAGE}: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](#connect-to-kubernetes-cluster)
```bash
docker run ${DOCKER_IMAGE}: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.
```bash
docker run -e XPUB_KEY_NAME=my-xpub-key-name -e XPRV_KEY_NAME=my-xpriv-key-name ${DOCKER_IMAGE}:latest
```