package
0.1.0
Repository: https://github.com/iov-one/blog-tutorial.git
Documentation: pkg.go.dev

# Functions

BuildSendTx will create an unsigned tx to move tokens.
DecodePrivateKey reads a hex string created by EncodePrivateKey and returns the original PrivateKey.
DecodePrivateKeyFromSeed decodes private key from seed string.
EncodePrivateKey stores the private key as a hex string that can be saved and later loaded.
FindCoinByTicker returns coins with equal tickers.
GenPrivateKey creates a new random key.
KeysByAddress takes a list of keys and creates a map to look up private keys by their (hex-encoded) address.
LoadPrivateKey will load a private key from a file, Which was previously written by SavePrivateKey.
LoadPrivateKeys will load an array of private keys from a file, Which was previously written by SavePrivateKeys.
MergeWalletStore merges two WalletStore.
NewClient wraps a BlogClient around an existing tendermint client connection.
NewHTTPConnection takes a URL and sends all requests to the remote node.
NewLocalConnection wraps an in-process node with a client, useful for tests.
ParseBlogTx will load a serialize tx into a format we can read.
SavePrivateKey will encode the private key in hex and write to the named file Refuses to overwrite a file unless force is true.
SavePrivateKeys will encode an array of private keys as a json array of hex strings and write to the named file Refuses to overwrite a file unless force is true.
SetValidatorTx will create an unsigned tx to replace current validator set.
SignTx modifies the tx in-place, adding signatures.
ToJsonString is a generic stringer which outputs a struct in its equivalent (indented) json representation If json marshalling not sucessful returns error.

# Constants

BroadcastTxSyncDefaultTimeOut timeout for sync tx broadcasting.
KeyPerm is the file permissions for saved private keys.

# Variables

ErrInvalid is returned when a value is invalid.
ErrNoMatch is returned when two compared values does not match.
ErrPermission is returned when an action is not permitted.
No description provided by the author

# Structs

AbciResponse contains a query result: a (possibly empty) list of key-value pairs, and the height at which it queried.
BlogClient is a tendermint client wrapped to provide simple access to the data structures used in blog module.
BroadcastTxResponse is the result of submitting a transaction.
UserResponse is a response on a query for a User.
WalletRequest is like GenesisAccount, but using pointers To differentiate between 0 and missing.
WalletRequests contains a collection of MaybeWalletRequest.
WalletResponse is a response on a query for a wallet.
WalletStore represents a list of wallets from a tendermint genesis file It also contains private keys generated for wallets without an Address.

# Interfaces

Client is an interface to interact with weave apps.
Tx is all the interfaces we need rolled into one.