ripple

module
v0.0.0-...-251bbda Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: BSD-2-Clause

README

Ripple Go

Ripple Go is a set of Go packages for the Ripple payment network. (I had also intended to clean up and open source my Ripple client here, but that is now unlikely to ever happen).

GoDoc Codeship Status for dchapes/ripple

Online package documentation is available via https://godoc.org/bitbucket.org/dchapes/ripple.

To use:

  1. Install Go (v1.2+ required), mercurial, and git.

  2. Make sure GOPATH is set correctly.¹

  3. Fetch this repository into your GOPATH ready for use (the ... grabs everything, or you could select individual packages²):

     go get bitbucket.org/dchapes/ripple/...
    
  4. Run all the tests (optional):

     go test bitbucket.org/dchapes/ripple/...
    
  5. Check the documentation to see what you can do with it.

If the above go get fails, or you have dependency issues building/testing this, it is usually due to incorrect GOROOT and/or GOPATH settings. If the build fails check that you have at least go1.2 (run go version).


Later, when this repository is updated, you can get the latest version/changes using one of these methods:

  • Manual mercurial commands:

    cd ${your_first_GOPATH_directory}/src/bitbucket.org/dchapes/ripple; hg pull -u

    This will pull down the latest change sets and attempt to update your working directory. Dependencies are not updated. The advantage of this method is that you can use the various mercurial commands to manage any local changes, merges, etc. See hg pull -h for more information.

  • Using Go:

    go get -v -u bitbucket.org/dchapes/ripple/...

    The -u option should cause Go to update the named packages and their dependencies. See go get -h for more information.


All code contained within this repository (in particular the code under crypto and crypto/ccm, probably the only thing anyone might be interesed in) is licensed under a simplified BSD 2-clause license, see the LICENSE file for details.


¹ go help GOPATH also has information on GOPATH.

² If you just want to install a single command, e.g. the wallet-simple command, you can just do step 1&2 as above, then run go get bitbucket.org/dchapes/ripple/cmd/wallet-simple. An executable should be built and put in the bin sub-directory of the first directory listing in your GOPATH.

Directories

Path Synopsis
cmd
wallet-recover
The wallet-recover command is the start of something to decode/encode wallet blobs as stored at Payward, in the local browser, or exported as ripple-wallet.txt.
The wallet-recover command is the start of something to decode/encode wallet blobs as stored at Payward, in the local browser, or exported as ripple-wallet.txt.
wallet-simple
The wallet-simple command generates a new random secret and prints it along with the matching Ripple address.
The wallet-simple command generates a new random secret and prints it along with the matching Ripple address.
crypto
ccm
Package ccm implements a CCM, Counter with CBC-MAC as per RFC 3610.
Package ccm implements a CCM, Counter with CBC-MAC as per RFC 3610.
doublehash
Package doublehash implements double hashing via a hash.Hash.
Package doublehash implements double hashing via a hash.Hash.
rkey
Package rkey, short for Ripple key, implements Ripple Account Families as documented at https://ripple.com/wiki/Account_Family.
Package rkey, short for Ripple key, implements Ripple Account Families as documented at https://ripple.com/wiki/Account_Family.
sha512half
Package sha512half implements the sha512 hash but returning only the first half of the sum as used by Ripple.
Package sha512half implements the sha512 hash but returning only the first half of the sum as used by Ripple.

Jump to

Keyboard shortcuts

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