Documentation ¶
Index ¶
- func CloseChannel(ctx context.Context, ledgerClient ledgerPb.ChannelsClient, ...) error
- func CloseConnection(conn *grpc.ClientConn)
- func CreateChannel(ctx context.Context, ledgerClient ledgerPb.ChannelsClient, ...) (*ledgerPb.ChannelID, error)
- func ImportAccount(ctx context.Context, pubKey ic.PubKey, ledgerClient ledgerPb.ChannelsClient) (*ledgerPb.Account, error)
- func ImportSignedAccount(ctx context.Context, privKey ic.PrivKey, pubKey ic.PubKey, ...) (*ledgerPb.SignedCreateAccountResult, error)
- func LedgerConnection(ledgerAddr, certFile string) (*grpc.ClientConn, error)
- 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 NewClient(conn *grpc.ClientConn) ledgerPb.ChannelsClient
- func NewSignedChannelState(channelState *ledgerPb.ChannelState, fromSig []byte, toSig []byte) *ledgerPb.SignedChannelState
- func Sign(key ic.PrivKey, channelMessage proto.Message) ([]byte, error)
- func Verify(key ic.PubKey, channelMessage proto.Message, sig []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseChannel ¶
func CloseChannel(ctx context.Context, ledgerClient ledgerPb.ChannelsClient, signedChannelState *ledgerPb.SignedChannelState) error
func CloseConnection ¶
func CloseConnection(conn *grpc.ClientConn)
func CreateChannel ¶
func CreateChannel(ctx context.Context, ledgerClient ledgerPb.ChannelsClient, channelCommit *ledgerPb.ChannelCommit, sig []byte) (*ledgerPb.ChannelID, error)
func ImportAccount ¶
func ImportSignedAccount ¶
func LedgerConnection ¶
func LedgerConnection(ledgerAddr, certFile string) (*grpc.ClientConn, error)
func NewChannelCommit ¶
func NewChannelState ¶
func NewClient ¶
func NewClient(conn *grpc.ClientConn) ledgerPb.ChannelsClient
func NewSignedChannelState ¶
func NewSignedChannelState(channelState *ledgerPb.ChannelState, fromSig []byte, toSig []byte) *ledgerPb.SignedChannelState
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.