wallet

package
v0.42.21 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(walletURL string) *Client

func (*Client) CreateWallet

func (c *Client) CreateWallet(ctx context.Context, name, passphrase string) error

func (Client) GenerateKeyPair

func (c Client) GenerateKeyPair(ctx context.Context, passphrase string, meta []types.Meta) (*types.Key, error)

func (*Client) ListPublicKeys

func (c *Client) ListPublicKeys(ctx context.Context) ([]string, error)

func (*Client) LoginWallet

func (c *Client) LoginWallet(ctx context.Context, name, passphrase string) error

func (*Client) SignTx

func (c *Client) SignTx(ctx context.Context, request *walletpb.SubmitTransactionRequest) error

type SignTxRequest

type SignTxRequest struct {
	PubKey    string `json:"pubKey"`
	Propagate bool   `json:"propagate"`
}

Jump to

Keyboard shortcuts

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