This tool generates public and private key pairs for bitcoin-sv (SPV-Wallet) applications. The generated keys are stored in separate files (xpub_key.txt and xprv_key.txt).
For in-depth information and guidance, please refer to the SPV Wallet Documentation.
go run main.go
It will create two files:
xpub_key.txt: Contains the public key.
xprv_key.txt: Contains the private key.
- Build the binary file:
CGO_ENABLED=0 go build -ldflags="-s -w" -v -o /generator
- Run script:
./keygen.sh
ℹ️ Use the option -h to see available options for the script.
./keygen.sh -h
- Build the docker image:
docker build --build-arg build_in_docker=true -t spv-wallet-admin-keygen:local .
- Run the docker container:
docker run -v ./my-kubeconfig:/kubeconfig -e KUBECONFIG=/kubeconfig spv-wallet-admin-keygen:local
- ./my-kubeconfig: Path to the kubeconfig file that will setup connection to k8s cluster.
- you can pass any parameter to the docker run command as you would do with the script.
This project is licensed under the MIT License.