Skip to content

Hashicorp vault plugin to manage transaction signing for the XRP ledger (Ripple)

License

Notifications You must be signed in to change notification settings

ChainFront/vault-plugin-xrp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vault Plugin: XRP Ledger Secrets Backend

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

Usage

Assuming you have Hashicorp Vault installed, scripts/dev.sh is a helper script to start up Vault in dev mode and mount this plugin. Vault will be listening on a private IP at 192.168.50.4:8200.

Once the plugin is mounted, you can start writing secrets to it.

Log In To Vault

export VAULT_ADDR=http://192.168.50.4:8200
vault login

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

Creating an Account

vault write ripple/accounts/MyAccountName xrp_balance=50

This will create a new account called "MyAccountName". The XRP balance is just a placeholder for now, it doesn't actually do anything since we're running on the testnet.

Viewing an Account

vault read ripple/accounts/MyAccountName

Viewing All Account Names

vault list ripple/accounts

Creating a Signed Payment Transaction

vault write ripple/payments source=MySourceAccountName destination=MyDestinationAccountName amount=35

This will return a signed transaction with a payment operation to send 35 XLM from MySourceAccountName to MyDestinationAccountName.

Running Tests

make test

License

Copyright (c) 2018-2019 ChainFront LLC

Licensed under the Apache License, Version 2.0.

About

Hashicorp vault plugin to manage transaction signing for the XRP ledger (Ripple)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published