{"id":18254702,"url":"https://github.com/bitcoin-sv/spv-wallet-admin-keygen","last_synced_at":"2025-04-04T17:30:44.554Z","repository":{"id":213685541,"uuid":"734305240","full_name":"bitcoin-sv/spv-wallet-admin-keygen","owner":"bitcoin-sv","description":"Tool for generating admin key for spv-wallet toolkit","archived":false,"fork":false,"pushed_at":"2024-06-25T11:50:58.000Z","size":43,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-25T13:16:05.522Z","etag":null,"topics":["bsv","bux","k8s","kubernetes","spv-wallet","spv-wallet-team","spv-wallet-toolkit","xpriv","xpub"],"latest_commit_sha":null,"homepage":"https://docs.bsvblockchain.org/network-topology/applications/spv-wallet","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitcoin-sv.png","metadata":{"files":{"readme":"README.DOCKER.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-21T11:01:23.000Z","updated_at":"2024-06-25T11:51:02.000Z","dependencies_parsed_at":"2023-12-27T10:24:06.241Z","dependency_job_id":"21c194fb-5308-4fe8-abbe-2ee677df047c","html_url":"https://github.com/bitcoin-sv/spv-wallet-admin-keygen","commit_stats":null,"previous_names":["buxorg/bux-admin-key-generator"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-sv%2Fspv-wallet-admin-keygen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-sv%2Fspv-wallet-admin-keygen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-sv%2Fspv-wallet-admin-keygen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-sv%2Fspv-wallet-admin-keygen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcoin-sv","download_url":"https://codeload.github.com/bitcoin-sv/spv-wallet-admin-keygen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223150706,"owners_count":17095959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bsv","bux","k8s","kubernetes","spv-wallet","spv-wallet-team","spv-wallet-toolkit","xpriv","xpub"],"created_at":"2024-11-05T10:13:18.830Z","updated_at":"2024-11-05T10:13:19.605Z","avatar_url":"https://github.com/bitcoin-sv.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPV Wallet Admin Keygen\n\nThis tool generates public and private key pairs for SPV Wallet applications. \nIt can just print those keys or by default store it in the Kubernetes secret.\n\n## Printing Keys\n\nTo print the keys, run the following command:\n\n```bash\ndocker run ${DOCKER_IMAGE}:latest --print --no-k8s\n```\n\n## Kubernetes Secret Creation\n\n### connect to kubernetes cluster\nTo set the keys in kubernetes secret, you need to setup the image to have access to the namespace kubernetes cluster.\n\nYou can do this for example by creating a dedicated kubeconfig file and mounting it to the container.\nSimplest way to do this is to mount your .kube/config file to the container.\n\n```bash\ndocker run -v {my/kube/config/file}:/kubeconfig -e KUBECONFIG=/kubeconfig ${DOCKER_IMAGE}:latest\n```\n\n### Configure the secret name\nBy default the secret name is `spv-wallet-keys`.\nYou can change it by using argument -s or --secret\n\nℹ️ To configure k8s connection look at the section [connect to kubernetes cluster](#connect-to-kubernetes-cluster)\n\n```bash\ndocker run ${DOCKER_IMAGE}:latest --secret my-secret-name\n```\n\nIf you prefer to use environment variables, you can set the `SECRET_NAME` environment variable instead.\n\n```bash\ndocker run -e SECRET_NAME=my-secret-name ${DOCKER_IMAGE}:latest\n```\n\n### Configure the key names\nBy default the key names are `admin_xpub` and `admin_xpriv`.\nYou can change it by using arguments -pb and -pv or --xpub-key and --xprv-key respectively.\n\nℹ️ To configure k8s connection look at the section [connect to kubernetes cluster](#connect-to-kubernetes-cluster)\n\n```bash\ndocker run ${DOCKER_IMAGE}:latest --xpub-key my-xpub-key-name --xprv-key my-xpriv-key-name\n```\n\nIf you prefer to use environment variables, you can set the `XPUB_KEY_NAME` and `XPRV_KEY_NAME` environment variables instead.\n\n```bash\ndocker run -e XPUB_KEY_NAME=my-xpub-key-name -e XPRV_KEY_NAME=my-xpriv-key-name ${DOCKER_IMAGE}:latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoin-sv%2Fspv-wallet-admin-keygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcoin-sv%2Fspv-wallet-admin-keygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoin-sv%2Fspv-wallet-admin-keygen/lists"}