cosmos-sdk/client/rest
Ethan Frey 8fbf923c25 Update binaries to use our key commands, not the ones from go-crypto 2017-09-08 20:47:46 +02:00
..
README.md client/rest, cmd/baseserver: started a basecoin REST client 2017-07-29 04:12:24 -06:00
handlers.go Update binaries to use our key commands, not the ones from go-crypto 2017-09-08 20:47:46 +02:00
helpers.go Update binaries to use our key commands, not the ones from go-crypto 2017-09-08 20:47:46 +02:00
types.go Rename all packages and imports to cosmos-sdk 2017-08-21 22:15:15 +01:00

README.md

basecoin-server

Proxy server

This package exposes access to key management i.e

  • creating
  • listing
  • updating
  • deleting

The HTTP handlers can be embedded in a larger server that does things like signing transactions and posting them to a Tendermint chain (which requires domain-knowledge of the transaction types and is out of scope of this generic app).

Key Management

We expose a couple of methods for safely managing your keychain. If you are embedding this in a larger server, you will typically want to mount all these paths /keys.

HTTP Method Route Description
POST / Requires a name and passphrase to create a brand new key
GET / Retrieves the list of all available key names, along with their public key and address
GET /{name} Updates the passphrase for the given key. It requires you to correctly provide the current passphrase, as well as a new one.
DELETE /{name} Permanently delete this private key. It requires you to correctly provide the current passphrase.