client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit()

func CreateAccount

func CreateAccount(privateKey crypto.PrivKey,
	accountID string)

func CreateLegalEntity

func CreateLegalEntity(privateKey crypto.PrivKey,
	entityID string, entityType byte, name string, parentID string)

func CreateUser

func CreateUser(privateKey crypto.PrivKey,
	newUsersName string,
	newUsersPubKey crypto.PubKey,
	newUserCanCreateLegalEntity bool)

func Decode

func Decode(base64EncodedString string) []byte

Decode converts string data back into a base64 encoded binary data block.

func Encode

func Encode(data []byte) string

Encode converts base64 encoded binary block into string.

func GetAccount

func GetAccount(accountRequested string) (returned types.AccountsReturned)

GetAccount makes a request to the ledger to return an accounts

func GetAllAccounts

func GetAllAccounts() (returned types.AccountIndex)

AccountIndex makes a request to the ledger to returns all account IDs

func GetAllLegalEntities

func GetAllLegalEntities() (returned types.LegalEntityIndex)

func GetLegalEntity

func GetLegalEntity(id string) (returned types.LegalEntitiesReturned)

func SetChainID

func SetChainID(id string)

SetChainID assigns and initializes the chain's ID

func StartClient

func StartClient(serverAddress string)

StartClient is a convenience function to start the client app

func TransferMoney

func TransferMoney(privateKey crypto.PrivKey, senderID string, recipientID string, counterSignerAddresses [][]byte, amount int64, currency string)

Creates money transfer entry in blockchain

Types

This section is empty.

Directories

Path Synopsis
rcp

Jump to

Keyboard shortcuts

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