Documentation ¶
Index ¶
- func NewAccount(pubKey ic.PubKey, amount int64) (*ledgerpb.Account, error)
- func NewChannelCommit(fromKey ic.PubKey, toKey ic.PubKey, amount int64) (*ledgerpb.ChannelCommit, error)
- func NewChannelState(id *ledgerpb.ChannelID, sequence int64, fromAccount *ledgerpb.Account, ...) *ledgerpb.ChannelState
- func NewSignedChannelState(channelState *ledgerpb.ChannelState, fromSig []byte, toSig []byte) *ledgerpb.SignedChannelState
- type Client
- func (c *Client) CloseChannel(ctx context.Context, signedChannelState *ledgerpb.SignedChannelState) error
- func (c *Client) CreateChannel(ctx context.Context, channelCommit *ledgerpb.ChannelCommit, sig []byte) (*ledgerpb.ChannelID, error)
- func (c *Client) ImportAccount(ctx context.Context, pubKey ic.PubKey) (*ledgerpb.Account, error)
- func (c *Client) ImportSignedAccount(ctx context.Context, privKey ic.PrivKey, pubKey ic.PubKey) (*ledgerpb.SignedCreateAccountResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChannelCommit ¶
func NewChannelState ¶
func NewSignedChannelState ¶
func NewSignedChannelState(channelState *ledgerpb.ChannelState, fromSig []byte, toSig []byte) *ledgerpb.SignedChannelState
Types ¶
type Client ¶ added in v0.1.10
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CloseChannel ¶ added in v0.1.10
func (*Client) CreateChannel ¶ added in v0.1.10
func (*Client) ImportAccount ¶ added in v0.1.10
Click to show internal directories.
Click to hide internal directories.