ripplecrypto

package
v0.0.0-...-485d38d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PassphraseToSecret

func PassphraseToSecret(c context.Context, passphrase string) string

Convert passphrase to Ripple secret

func ToHexSeedString

func ToHexSeedString(secret string) (string, error)

Generate hex seed from ripple secret

func ToSecret

func ToSecret(hexString string) (string, error)

Generate ripple encoded secret from hex string of the seed

Types

type RippleAddress

type RippleAddress struct {
	Value      string `json:"value"`
	PublicKey  string `json:"publicKey"`
	PrivateKey string `json:"privateKey"`
}

type RippleWallet

type RippleWallet struct {
	Passphrase string   `json:"passphrase"`
	HexSeed    string   `json:"hexSeed"`
	Addresses  []string `json:"addresses"`
	RequestId  string   `json:"requestId"`
}

func CreateWallet

func CreateWallet(numberOfAddressesToGenerate int) (RippleWallet, error)

Generates a ripple wallet offline

Jump to

Keyboard shortcuts

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