Secrets plugin for Hashicorp Vault to manage keys and sign transactions for Bitcoin
This is a backend secrets plugin to be used with Hashicorp Vault. This plugin manages secret keys for the Bitcoin blockchain platform.
Assuming you have Hashicorp Vault installed, scripts/dev_start.sh
is a helper script to start up Vault in dev mode and mount this plugin.
Vault will be listening on localhost:8200.
Once the plugin is mounted, you can start writing secrets to it.
export VAULT_ADDR=http://localhost:8200
vault login
The token is “root” if you’ve used dev_start.sh to start Vault.
vault write bitcoin/accounts/MyAccountName
This will create a new account called “MyAccountName”.
vault read bitcoin/accounts/MyAccountName
vault list bitcoin/accounts
vault write bitcoin/payments source=MySourceAccountName destination=MyDestinationAccountName amount=35 unsignedTx=01000...
This will return a signed transaction.
make test
Running tests with coverage:
make coverage
Copyright (c) 2019 ChainFront LLC
Licensed under the Apache License, Version 2.0.