vault-plugin-bitcoin

command module
v0.0.0-...-594978b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

Vault Plugin: Bitcoin Secrets Backend

This is a backend secrets plugin to be used with Hashicorp Vault. This plugin manages secret keys for the Bitcoin blockchain platform.

Usage

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.

Log In To Vault
export VAULT_ADDR=http://localhost:8200
vault login

The token is "root" if you've used dev_start.sh to start Vault.

Creating an Account

vault write bitcoin/accounts/MyAccountName

This will create a new account called "MyAccountName".

Viewing an Account

vault read bitcoin/accounts/MyAccountName

Viewing All Account Names

vault list bitcoin/accounts

Creating a Signed Payment Transaction

vault write bitcoin/payments source=MySourceAccountName destination=MyDestinationAccountName amount=35 unsignedTx=01000...

This will return a signed transaction.

Running Tests

make test

Running tests with coverage:

make coverage

License

Copyright (c) 2019 ChainFront LLC

Licensed under the Apache License, Version 2.0.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL