protobuf

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package protobuf implements the wire serializer interface using the protocol buffers serialization protocol.

Index

Constants

This section is empty.

Variables

Functions

func FromApp added in v0.11.0

func FromApp(app channel.App) (protoApp []byte, err error)

FromApp converts a channel.App to a protobuf app.

func FromAppAndData added in v0.11.0

func FromAppAndData(app channel.App, data channel.Data) (protoApp, protoData []byte, err error)

FromAppAndData converts channel.App and channel.Data to protobuf app and data.

func FromIndexMap added in v0.11.0

func FromIndexMap(indexMap []channel.Index) (protoIndexMap []uint32)

FromIndexMap converts a channel.IndexMap to a protobuf index map.

func FromWalletAddr added in v0.11.0

func FromWalletAddr(addr wallet.Address) ([]byte, error)

FromWalletAddr converts a wallet.Address to a protobuf wallet address.

func FromWalletAddrs added in v0.11.0

func FromWalletAddrs(addrs []wallet.Address) (protoAddrs [][]byte, err error)

FromWalletAddrs converts a slice of wallet.Address to protobuf wallet addresses.

func FromWireAddrs added in v0.11.0

func FromWireAddrs(addrs []wire.Address) (protoAddrs [][]byte, err error)

FromWireAddrs converts a slice of wire.Address to protobuf wire addresses.

func Serializer

func Serializer() wire.EnvelopeSerializer

Serializer returns a protobuf serializer.

func ToAllocation added in v0.11.0

func ToAllocation(protoAlloc *Allocation) (alloc *channel.Allocation, err error)

ToAllocation converts a protobuf allocation to a channel.Allocation.

func ToApp added in v0.11.0

func ToApp(protoApp []byte) (app channel.App, err error)

ToApp converts a protobuf app to a channel.App.

func ToAppAndData added in v0.11.0

func ToAppAndData(protoApp, protoData []byte) (app channel.App, data channel.Data, err error)

ToAppAndData converts protobuf app and data to a channel.App and channel.Data.

func ToBalance added in v0.11.0

func ToBalance(protoBalance *Balance) (balance []channel.Bal)

ToBalance converts a protobuf Balance to a channel.Bal.

func ToBalances added in v0.11.0

func ToBalances(protoBalances *Balances) (balances channel.Balances)

ToBalances converts a protobuf Balances to a channel.Balances.

func ToBaseChannelProposal added in v0.11.0

func ToBaseChannelProposal(protoProp *BaseChannelProposal) (prop client.BaseChannelProposal, err error)

ToBaseChannelProposal converts a protobuf BaseChannelProposal to a client BaseChannelProposal.

func ToBaseChannelProposalAcc added in v0.11.0

func ToBaseChannelProposalAcc(protoPropAcc *BaseChannelProposalAcc) (propAcc client.BaseChannelProposalAcc)

ToBaseChannelProposalAcc converts a protobuf BaseChannelProposalAcc to a client BaseChannelProposalAcc.

func ToChannelProposalRejMsg added in v0.11.0

func ToChannelProposalRejMsg(protoEnvMsg *Envelope_ChannelProposalRejMsg) (msg *client.ChannelProposalRejMsg)

ToChannelProposalRejMsg converts a protobuf Envelope_ChannelProposalRejMsg to a client ChannelProposalRejMsg.

func ToChannelUpdate added in v0.11.0

func ToChannelUpdate(protoUpdate *ChannelUpdateMsg) (update client.ChannelUpdateMsg, err error)

ToChannelUpdate parses protobuf channel updates.

func ToChannelUpdateAccMsg added in v0.11.0

func ToChannelUpdateAccMsg(protoEnvMsg *Envelope_ChannelUpdateAccMsg) (msg *client.ChannelUpdateAccMsg)

ToChannelUpdateAccMsg converts a protobuf Envelope_ChannelUpdateAccMsg to a client.ChannelUpdateAccMsg.

func ToChannelUpdateMsg added in v0.11.0

func ToChannelUpdateMsg(protoEnvMsg *Envelope_ChannelUpdateMsg) (*client.ChannelUpdateMsg, error)

ToChannelUpdateMsg converts a protobuf Envelope_ChannelUpdateMsg to a client.ChannelUpdateMsg.

func ToChannelUpdateRejMsg added in v0.11.0

func ToChannelUpdateRejMsg(protoEnvMsg *Envelope_ChannelUpdateRejMsg) (msg *client.ChannelUpdateRejMsg)

ToChannelUpdateRejMsg converts a protobuf Envelope_ChannelUpdateRejMsg to a client.ChannelUpdateRejMsg.

func ToIndexMap added in v0.11.0

func ToIndexMap(protoIndexMap []uint32) (indexMap []channel.Index, err error)

ToIndexMap converts a protobuf IndexMap to a channel.IndexMap.

func ToLedgerChannelProposalAccMsg added in v0.11.0

func ToLedgerChannelProposalAccMsg(protoEnvMsg *Envelope_LedgerChannelProposalAccMsg) (msg *client.LedgerChannelProposalAccMsg, err error)

ToLedgerChannelProposalAccMsg converts a protobuf Envelope_LedgerChannelProposalAccMsg to a client LedgerChannelProposalAccMsg.

func ToLedgerChannelProposalMsg added in v0.11.0

func ToLedgerChannelProposalMsg(protoEnvMsg *Envelope_LedgerChannelProposalMsg) (msg *client.LedgerChannelProposalMsg, err error)

ToLedgerChannelProposalMsg converts a protobuf Envelope_LedgerChannelProposalMsg to a client LedgerChannelProposalMsg.

func ToParams added in v0.11.0

func ToParams(protoParams *Params) (*channel.Params, error)

ToParams converts a protobuf Params to a channel.Params.

func ToSignedState added in v0.11.0

func ToSignedState(protoSignedState *SignedState) (signedState channel.SignedState, err error)

ToSignedState converts a protobuf SignedState to a channel.SignedState.

func ToState added in v0.11.0

func ToState(protoState *State) (state *channel.State, err error)

ToState converts a protobuf State to a channel.State.

func ToSubAlloc added in v0.11.0

func ToSubAlloc(protoSubAlloc *SubAlloc) (subAlloc channel.SubAlloc, err error)

ToSubAlloc converts a protobuf SubAlloc to a channel.SubAlloc.

func ToSubChannelProposalAccMsg added in v0.11.0

func ToSubChannelProposalAccMsg(protoEnvMsg *Envelope_SubChannelProposalAccMsg) (msg *client.SubChannelProposalAccMsg)

ToSubChannelProposalAccMsg converts a protobuf Envelope_SubChannelProposalAccMsg to a client SubChannelProposalAccMsg.

func ToSubChannelProposalMsg added in v0.11.0

func ToSubChannelProposalMsg(protoEnvMsg *Envelope_SubChannelProposalMsg) (msg *client.SubChannelProposalMsg, err error)

ToSubChannelProposalMsg converts a protobuf Envelope_SubChannelProposalMsg to a client SubChannelProposalMsg.

func ToVirtualChannelFundingProposalMsg added in v0.11.0

func ToVirtualChannelFundingProposalMsg(protoEnvMsg *Envelope_VirtualChannelFundingProposalMsg) (
	msg *client.VirtualChannelFundingProposalMsg,
	err error,
)

ToVirtualChannelFundingProposalMsg converts a protobuf Envelope_VirtualChannelFundingProposalMsg to a client.VirtualChannelFundingProposalMsg.

func ToVirtualChannelProposalAccMsg added in v0.11.0

func ToVirtualChannelProposalAccMsg(protoEnvMsg *Envelope_VirtualChannelProposalAccMsg) (msg *client.VirtualChannelProposalAccMsg, err error)

ToVirtualChannelProposalAccMsg converts a protobuf Envelope_VirtualChannelProposalAccMsg to a client VirtualChannelProposalAccMsg.

func ToVirtualChannelProposalMsg added in v0.11.0

func ToVirtualChannelProposalMsg(protoEnvMsg *Envelope_VirtualChannelProposalMsg) (msg *client.VirtualChannelProposalMsg, err error)

ToVirtualChannelProposalMsg converts a protobuf Envelope_VirtualChannelProposalMsg to a client VirtualChannelProposalMsg.

func ToVirtualChannelSettlementProposalMsg added in v0.11.0

func ToVirtualChannelSettlementProposalMsg(protoEnvMsg *Envelope_VirtualChannelSettlementProposalMsg) (
	msg *client.VirtualChannelSettlementProposalMsg,
	err error,
)

ToVirtualChannelSettlementProposalMsg converts a protobuf Envelope_VirtualChannelSettlementProposalMsg to a client.VirtualChannelSettlementProposalMsg.

func ToWalletAddr added in v0.11.0

func ToWalletAddr(protoAddr []byte) (wallet.Address, error)

ToWalletAddr converts a protobuf wallet address to a wallet.Address.

func ToWalletAddrs added in v0.11.0

func ToWalletAddrs(protoAddrs [][]byte) ([]wallet.Address, error)

ToWalletAddrs converts protobuf wallet addresses to a slice of wallet.Address.

func ToWireAddrs added in v0.11.0

func ToWireAddrs(protoAddrs [][]byte) ([]wire.Address, error)

ToWireAddrs converts protobuf wire addresses to a slice of wire.Address.

Types

type Allocation

type Allocation struct {
	Assets   [][]byte    `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	Balances *Balances   `protobuf:"bytes,2,opt,name=balances,proto3" json:"balances,omitempty"`
	Locked   []*SubAlloc `protobuf:"bytes,3,rep,name=locked,proto3" json:"locked,omitempty"`
	// contains filtered or unexported fields
}

Allocation represents channel.Allocation.

func FromAllocation added in v0.11.0

func FromAllocation(alloc channel.Allocation) (protoAlloc *Allocation, err error)

FromAllocation converts a channel.Allocation to a protobuf Allocation.

func (*Allocation) Descriptor deprecated

func (*Allocation) Descriptor() ([]byte, []int)

Deprecated: Use Allocation.ProtoReflect.Descriptor instead.

func (*Allocation) GetAssets

func (x *Allocation) GetAssets() [][]byte

func (*Allocation) GetBalances

func (x *Allocation) GetBalances() *Balances

func (*Allocation) GetLocked

func (x *Allocation) GetLocked() []*SubAlloc

func (*Allocation) ProtoMessage

func (*Allocation) ProtoMessage()

func (*Allocation) ProtoReflect

func (x *Allocation) ProtoReflect() protoreflect.Message

func (*Allocation) Reset

func (x *Allocation) Reset()

func (*Allocation) String

func (x *Allocation) String() string

type AuthResponseMsg

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

AuthResponseMsg represents wire.AuthResponseMsg.

func (*AuthResponseMsg) Descriptor deprecated

func (*AuthResponseMsg) Descriptor() ([]byte, []int)

Deprecated: Use AuthResponseMsg.ProtoReflect.Descriptor instead.

func (*AuthResponseMsg) ProtoMessage

func (*AuthResponseMsg) ProtoMessage()

func (*AuthResponseMsg) ProtoReflect

func (x *AuthResponseMsg) ProtoReflect() protoreflect.Message

func (*AuthResponseMsg) Reset

func (x *AuthResponseMsg) Reset()

func (*AuthResponseMsg) String

func (x *AuthResponseMsg) String() string

type Balance

type Balance struct {
	Balance [][]byte `protobuf:"bytes,1,rep,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

Balance represents the balance of a single asset, for all the channel participants.

func FromBalance added in v0.11.0

func FromBalance(balance []channel.Bal) (protoBalance *Balance, err error)

FromBalance converts a slice of channel.Bal to a protobuf Balance.

func (*Balance) Descriptor deprecated

func (*Balance) Descriptor() ([]byte, []int)

Deprecated: Use Balance.ProtoReflect.Descriptor instead.

func (*Balance) GetBalance

func (x *Balance) GetBalance() [][]byte

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) ProtoReflect

func (x *Balance) ProtoReflect() protoreflect.Message

func (*Balance) Reset

func (x *Balance) Reset()

func (*Balance) String

func (x *Balance) String() string

type Balances

type Balances struct {
	Balances []*Balance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
	// contains filtered or unexported fields
}

Balances represents the balance of all the assets, for all the channel participants.

func FromBalances added in v0.11.0

func FromBalances(balances channel.Balances) (protoBalances *Balances, err error)

FromBalances converts a channel.Balances to a protobuf Balances.

func (*Balances) Descriptor deprecated

func (*Balances) Descriptor() ([]byte, []int)

Deprecated: Use Balances.ProtoReflect.Descriptor instead.

func (*Balances) GetBalances

func (x *Balances) GetBalances() []*Balance

func (*Balances) ProtoMessage

func (*Balances) ProtoMessage()

func (*Balances) ProtoReflect

func (x *Balances) ProtoReflect() protoreflect.Message

func (*Balances) Reset

func (x *Balances) Reset()

func (*Balances) String

func (x *Balances) String() string

type BaseChannelProposal

type BaseChannelProposal struct {
	ProposalId        []byte      `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	ChallengeDuration uint64      `protobuf:"varint,2,opt,name=challenge_duration,json=challengeDuration,proto3" json:"challenge_duration,omitempty"`
	NonceShare        []byte      `protobuf:"bytes,3,opt,name=nonce_share,json=nonceShare,proto3" json:"nonce_share,omitempty"`
	App               []byte      `protobuf:"bytes,4,opt,name=app,proto3" json:"app,omitempty"`
	InitData          []byte      `protobuf:"bytes,5,opt,name=init_data,json=initData,proto3" json:"init_data,omitempty"`
	InitBals          *Allocation `protobuf:"bytes,6,opt,name=init_bals,json=initBals,proto3" json:"init_bals,omitempty"`
	FundingAgreement  *Balances   `protobuf:"bytes,7,opt,name=funding_agreement,json=fundingAgreement,proto3" json:"funding_agreement,omitempty"`
	// contains filtered or unexported fields
}

BaseChannelProposal represents client.BaseChannelProposal.

func FromBaseChannelProposal added in v0.11.0

func FromBaseChannelProposal(prop client.BaseChannelProposal) (protoProp *BaseChannelProposal, err error)

FromBaseChannelProposal converts a client BaseChannelProposal to a protobuf BaseChannelProposal.

func (*BaseChannelProposal) Descriptor deprecated

func (*BaseChannelProposal) Descriptor() ([]byte, []int)

Deprecated: Use BaseChannelProposal.ProtoReflect.Descriptor instead.

func (*BaseChannelProposal) GetApp

func (x *BaseChannelProposal) GetApp() []byte

func (*BaseChannelProposal) GetChallengeDuration

func (x *BaseChannelProposal) GetChallengeDuration() uint64

func (*BaseChannelProposal) GetFundingAgreement

func (x *BaseChannelProposal) GetFundingAgreement() *Balances

func (*BaseChannelProposal) GetInitBals

func (x *BaseChannelProposal) GetInitBals() *Allocation

func (*BaseChannelProposal) GetInitData

func (x *BaseChannelProposal) GetInitData() []byte

func (*BaseChannelProposal) GetNonceShare

func (x *BaseChannelProposal) GetNonceShare() []byte

func (*BaseChannelProposal) GetProposalId

func (x *BaseChannelProposal) GetProposalId() []byte

func (*BaseChannelProposal) ProtoMessage

func (*BaseChannelProposal) ProtoMessage()

func (*BaseChannelProposal) ProtoReflect

func (x *BaseChannelProposal) ProtoReflect() protoreflect.Message

func (*BaseChannelProposal) Reset

func (x *BaseChannelProposal) Reset()

func (*BaseChannelProposal) String

func (x *BaseChannelProposal) String() string

type BaseChannelProposalAcc

type BaseChannelProposalAcc struct {
	ProposalId []byte `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	NonceShare []byte `protobuf:"bytes,2,opt,name=nonce_share,json=nonceShare,proto3" json:"nonce_share,omitempty"`
	// contains filtered or unexported fields
}

BaseChannelProposalAcc represents client.BaseChannelProposalAcc.

func FromBaseChannelProposalAcc added in v0.11.0

func FromBaseChannelProposalAcc(propAcc client.BaseChannelProposalAcc) (protoPropAcc *BaseChannelProposalAcc)

FromBaseChannelProposalAcc converts a client BaseChannelProposalAcc to a protobuf BaseChannelProposalAcc.

func (*BaseChannelProposalAcc) Descriptor deprecated

func (*BaseChannelProposalAcc) Descriptor() ([]byte, []int)

Deprecated: Use BaseChannelProposalAcc.ProtoReflect.Descriptor instead.

func (*BaseChannelProposalAcc) GetNonceShare

func (x *BaseChannelProposalAcc) GetNonceShare() []byte

func (*BaseChannelProposalAcc) GetProposalId

func (x *BaseChannelProposalAcc) GetProposalId() []byte

func (*BaseChannelProposalAcc) ProtoMessage

func (*BaseChannelProposalAcc) ProtoMessage()

func (*BaseChannelProposalAcc) ProtoReflect

func (x *BaseChannelProposalAcc) ProtoReflect() protoreflect.Message

func (*BaseChannelProposalAcc) Reset

func (x *BaseChannelProposalAcc) Reset()

func (*BaseChannelProposalAcc) String

func (x *BaseChannelProposalAcc) String() string

type ChannelProposalRejMsg

type ChannelProposalRejMsg struct {
	ProposalId []byte `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	Reason     string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

ChannelProposalRejMsg represents client.ChannelProposalRejMsg.

func (*ChannelProposalRejMsg) Descriptor deprecated

func (*ChannelProposalRejMsg) Descriptor() ([]byte, []int)

Deprecated: Use ChannelProposalRejMsg.ProtoReflect.Descriptor instead.

func (*ChannelProposalRejMsg) GetProposalId

func (x *ChannelProposalRejMsg) GetProposalId() []byte

func (*ChannelProposalRejMsg) GetReason

func (x *ChannelProposalRejMsg) GetReason() string

func (*ChannelProposalRejMsg) ProtoMessage

func (*ChannelProposalRejMsg) ProtoMessage()

func (*ChannelProposalRejMsg) ProtoReflect

func (x *ChannelProposalRejMsg) ProtoReflect() protoreflect.Message

func (*ChannelProposalRejMsg) Reset

func (x *ChannelProposalRejMsg) Reset()

func (*ChannelProposalRejMsg) String

func (x *ChannelProposalRejMsg) String() string

type ChannelSyncMsg

type ChannelSyncMsg struct {
	Phase     uint32       `protobuf:"varint,1,opt,name=phase,proto3" json:"phase,omitempty"`
	CurrentTx *Transaction `protobuf:"bytes,2,opt,name=current_tx,json=currentTx,proto3" json:"current_tx,omitempty"`
	// contains filtered or unexported fields
}

ChannelSyncMsg represents client.ChannelSyncMsg.

func (*ChannelSyncMsg) Descriptor deprecated

func (*ChannelSyncMsg) Descriptor() ([]byte, []int)

Deprecated: Use ChannelSyncMsg.ProtoReflect.Descriptor instead.

func (*ChannelSyncMsg) GetCurrentTx

func (x *ChannelSyncMsg) GetCurrentTx() *Transaction

func (*ChannelSyncMsg) GetPhase

func (x *ChannelSyncMsg) GetPhase() uint32

func (*ChannelSyncMsg) ProtoMessage

func (*ChannelSyncMsg) ProtoMessage()

func (*ChannelSyncMsg) ProtoReflect

func (x *ChannelSyncMsg) ProtoReflect() protoreflect.Message

func (*ChannelSyncMsg) Reset

func (x *ChannelSyncMsg) Reset()

func (*ChannelSyncMsg) String

func (x *ChannelSyncMsg) String() string

type ChannelUpdate

type ChannelUpdate struct {
	State    *State `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	ActorIdx uint32 `protobuf:"varint,2,opt,name=actor_idx,json=actorIdx,proto3" json:"actor_idx,omitempty"`
	// contains filtered or unexported fields
}

ChannelUpdate represents channel.ChannelUpdate.

func (*ChannelUpdate) Descriptor deprecated

func (*ChannelUpdate) Descriptor() ([]byte, []int)

Deprecated: Use ChannelUpdate.ProtoReflect.Descriptor instead.

func (*ChannelUpdate) GetActorIdx

func (x *ChannelUpdate) GetActorIdx() uint32

func (*ChannelUpdate) GetState

func (x *ChannelUpdate) GetState() *State

func (*ChannelUpdate) ProtoMessage

func (*ChannelUpdate) ProtoMessage()

func (*ChannelUpdate) ProtoReflect

func (x *ChannelUpdate) ProtoReflect() protoreflect.Message

func (*ChannelUpdate) Reset

func (x *ChannelUpdate) Reset()

func (*ChannelUpdate) String

func (x *ChannelUpdate) String() string

type ChannelUpdateAccMsg

type ChannelUpdateAccMsg struct {
	ChannelId []byte `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	Version   uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	Sig       []byte `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"`
	// contains filtered or unexported fields
}

ChannelUpdateAccMsg represents client.ChannelUpdateAccMsg.

func (*ChannelUpdateAccMsg) Descriptor deprecated

func (*ChannelUpdateAccMsg) Descriptor() ([]byte, []int)

Deprecated: Use ChannelUpdateAccMsg.ProtoReflect.Descriptor instead.

func (*ChannelUpdateAccMsg) GetChannelId

func (x *ChannelUpdateAccMsg) GetChannelId() []byte

func (*ChannelUpdateAccMsg) GetSig

func (x *ChannelUpdateAccMsg) GetSig() []byte

func (*ChannelUpdateAccMsg) GetVersion

func (x *ChannelUpdateAccMsg) GetVersion() uint64

func (*ChannelUpdateAccMsg) ProtoMessage

func (*ChannelUpdateAccMsg) ProtoMessage()

func (*ChannelUpdateAccMsg) ProtoReflect

func (x *ChannelUpdateAccMsg) ProtoReflect() protoreflect.Message

func (*ChannelUpdateAccMsg) Reset

func (x *ChannelUpdateAccMsg) Reset()

func (*ChannelUpdateAccMsg) String

func (x *ChannelUpdateAccMsg) String() string

type ChannelUpdateMsg

type ChannelUpdateMsg struct {
	ChannelUpdate *ChannelUpdate `protobuf:"bytes,1,opt,name=channel_update,json=channelUpdate,proto3" json:"channel_update,omitempty"`
	Sig           []byte         `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	// contains filtered or unexported fields
}

ChannelUpdateMsg represents client.ChannelUpdateMsg.

func FromChannelUpdate added in v0.11.0

func FromChannelUpdate(update *client.ChannelUpdateMsg) (protoUpdate *ChannelUpdateMsg, err error)

FromChannelUpdate converts a client.ChannelUpdateMsg to a protobuf ChannelUpdateMsg.

func (*ChannelUpdateMsg) Descriptor deprecated

func (*ChannelUpdateMsg) Descriptor() ([]byte, []int)

Deprecated: Use ChannelUpdateMsg.ProtoReflect.Descriptor instead.

func (*ChannelUpdateMsg) GetChannelUpdate

func (x *ChannelUpdateMsg) GetChannelUpdate() *ChannelUpdate

func (*ChannelUpdateMsg) GetSig

func (x *ChannelUpdateMsg) GetSig() []byte

func (*ChannelUpdateMsg) ProtoMessage

func (*ChannelUpdateMsg) ProtoMessage()

func (*ChannelUpdateMsg) ProtoReflect

func (x *ChannelUpdateMsg) ProtoReflect() protoreflect.Message

func (*ChannelUpdateMsg) Reset

func (x *ChannelUpdateMsg) Reset()

func (*ChannelUpdateMsg) String

func (x *ChannelUpdateMsg) String() string

type ChannelUpdateRejMsg

type ChannelUpdateRejMsg struct {
	ChannelId []byte `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	Version   uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	Reason    string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

ChannelUpdateRejMsg represents client.ChannelUpdateRejMsg.

func (*ChannelUpdateRejMsg) Descriptor deprecated

func (*ChannelUpdateRejMsg) Descriptor() ([]byte, []int)

Deprecated: Use ChannelUpdateRejMsg.ProtoReflect.Descriptor instead.

func (*ChannelUpdateRejMsg) GetChannelId

func (x *ChannelUpdateRejMsg) GetChannelId() []byte

func (*ChannelUpdateRejMsg) GetReason

func (x *ChannelUpdateRejMsg) GetReason() string

func (*ChannelUpdateRejMsg) GetVersion

func (x *ChannelUpdateRejMsg) GetVersion() uint64

func (*ChannelUpdateRejMsg) ProtoMessage

func (*ChannelUpdateRejMsg) ProtoMessage()

func (*ChannelUpdateRejMsg) ProtoReflect

func (x *ChannelUpdateRejMsg) ProtoReflect() protoreflect.Message

func (*ChannelUpdateRejMsg) Reset

func (x *ChannelUpdateRejMsg) Reset()

func (*ChannelUpdateRejMsg) String

func (x *ChannelUpdateRejMsg) String() string

type Envelope

type Envelope struct {

	// sender of the message.
	Sender []byte `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// intended recipient of the message.
	Recipient []byte `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// msg should contain on the valid message types.
	//
	// Types that are assignable to Msg:
	//	*Envelope_PingMsg
	//	*Envelope_PongMsg
	//	*Envelope_ShutdownMsg
	//	*Envelope_AuthResponseMsg
	//	*Envelope_LedgerChannelProposalMsg
	//	*Envelope_LedgerChannelProposalAccMsg
	//	*Envelope_SubChannelProposalMsg
	//	*Envelope_SubChannelProposalAccMsg
	//	*Envelope_VirtualChannelProposalMsg
	//	*Envelope_VirtualChannelProposalAccMsg
	//	*Envelope_ChannelProposalRejMsg
	//	*Envelope_ChannelUpdateMsg
	//	*Envelope_VirtualChannelFundingProposalMsg
	//	*Envelope_VirtualChannelSettlementProposalMsg
	//	*Envelope_ChannelUpdateAccMsg
	//	*Envelope_ChannelUpdateRejMsg
	//	*Envelope_ChannelSyncMsg
	Msg isEnvelope_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

Envelope encapsulates a message with the routing information. That is the the sender and the intended receiver.

func (*Envelope) Descriptor deprecated

func (*Envelope) Descriptor() ([]byte, []int)

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetAuthResponseMsg

func (x *Envelope) GetAuthResponseMsg() *AuthResponseMsg

func (*Envelope) GetChannelProposalRejMsg

func (x *Envelope) GetChannelProposalRejMsg() *ChannelProposalRejMsg

func (*Envelope) GetChannelSyncMsg

func (x *Envelope) GetChannelSyncMsg() *ChannelSyncMsg

func (*Envelope) GetChannelUpdateAccMsg

func (x *Envelope) GetChannelUpdateAccMsg() *ChannelUpdateAccMsg

func (*Envelope) GetChannelUpdateMsg

func (x *Envelope) GetChannelUpdateMsg() *ChannelUpdateMsg

func (*Envelope) GetChannelUpdateRejMsg

func (x *Envelope) GetChannelUpdateRejMsg() *ChannelUpdateRejMsg

func (*Envelope) GetLedgerChannelProposalAccMsg

func (x *Envelope) GetLedgerChannelProposalAccMsg() *LedgerChannelProposalAccMsg

func (*Envelope) GetLedgerChannelProposalMsg

func (x *Envelope) GetLedgerChannelProposalMsg() *LedgerChannelProposalMsg

func (*Envelope) GetMsg

func (m *Envelope) GetMsg() isEnvelope_Msg

func (*Envelope) GetPingMsg

func (x *Envelope) GetPingMsg() *PingMsg

func (*Envelope) GetPongMsg

func (x *Envelope) GetPongMsg() *PongMsg

func (*Envelope) GetRecipient

func (x *Envelope) GetRecipient() []byte

func (*Envelope) GetSender

func (x *Envelope) GetSender() []byte

func (*Envelope) GetShutdownMsg

func (x *Envelope) GetShutdownMsg() *ShutdownMsg

func (*Envelope) GetSubChannelProposalAccMsg

func (x *Envelope) GetSubChannelProposalAccMsg() *SubChannelProposalAccMsg

func (*Envelope) GetSubChannelProposalMsg

func (x *Envelope) GetSubChannelProposalMsg() *SubChannelProposalMsg

func (*Envelope) GetVirtualChannelFundingProposalMsg

func (x *Envelope) GetVirtualChannelFundingProposalMsg() *VirtualChannelFundingProposalMsg

func (*Envelope) GetVirtualChannelProposalAccMsg

func (x *Envelope) GetVirtualChannelProposalAccMsg() *VirtualChannelProposalAccMsg

func (*Envelope) GetVirtualChannelProposalMsg

func (x *Envelope) GetVirtualChannelProposalMsg() *VirtualChannelProposalMsg

func (*Envelope) GetVirtualChannelSettlementProposalMsg

func (x *Envelope) GetVirtualChannelSettlementProposalMsg() *VirtualChannelSettlementProposalMsg

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

func (x *Envelope) ProtoReflect() protoreflect.Message

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) String

func (x *Envelope) String() string

type Envelope_AuthResponseMsg

type Envelope_AuthResponseMsg struct {
	AuthResponseMsg *AuthResponseMsg `protobuf:"bytes,6,opt,name=auth_response_msg,json=authResponseMsg,proto3,oneof"`
}

type Envelope_ChannelProposalRejMsg

type Envelope_ChannelProposalRejMsg struct {
	ChannelProposalRejMsg *ChannelProposalRejMsg `protobuf:"bytes,13,opt,name=channel_proposal_rej_msg,json=channelProposalRejMsg,proto3,oneof"`
}

func FromChannelProposalRejMsg added in v0.11.0

func FromChannelProposalRejMsg(msg *client.ChannelProposalRejMsg) (_ *Envelope_ChannelProposalRejMsg)

FromChannelProposalRejMsg converts a client ChannelProposalRejMsg to a protobuf Envelope_ChannelProposalRejMsg.

type Envelope_ChannelSyncMsg

type Envelope_ChannelSyncMsg struct {
	ChannelSyncMsg *ChannelSyncMsg `protobuf:"bytes,19,opt,name=channel_sync_msg,json=channelSyncMsg,proto3,oneof"`
}

type Envelope_ChannelUpdateAccMsg

type Envelope_ChannelUpdateAccMsg struct {
	ChannelUpdateAccMsg *ChannelUpdateAccMsg `protobuf:"bytes,17,opt,name=channel_update_acc_msg,json=channelUpdateAccMsg,proto3,oneof"`
}

func FromChannelUpdateAccMsg added in v0.11.0

func FromChannelUpdateAccMsg(msg *client.ChannelUpdateAccMsg) *Envelope_ChannelUpdateAccMsg

FromChannelUpdateAccMsg converts a client.ChannelUpdateAccMsg to a protobuf Envelope_ChannelUpdateAccMsg.

type Envelope_ChannelUpdateMsg

type Envelope_ChannelUpdateMsg struct {
	ChannelUpdateMsg *ChannelUpdateMsg `protobuf:"bytes,14,opt,name=channel_update_msg,json=channelUpdateMsg,proto3,oneof"`
}

func FromChannelUpdateMsg added in v0.11.0

func FromChannelUpdateMsg(msg *client.ChannelUpdateMsg) (*Envelope_ChannelUpdateMsg, error)

FromChannelUpdateMsg converts a client.ChannelUpdateMsg to a protobuf Envelope_ChannelUpdateMsg.

type Envelope_ChannelUpdateRejMsg

type Envelope_ChannelUpdateRejMsg struct {
	ChannelUpdateRejMsg *ChannelUpdateRejMsg `protobuf:"bytes,18,opt,name=channel_update_rej_msg,json=channelUpdateRejMsg,proto3,oneof"`
}

func FromChannelUpdateRejMsg added in v0.11.0

func FromChannelUpdateRejMsg(msg *client.ChannelUpdateRejMsg) *Envelope_ChannelUpdateRejMsg

FromChannelUpdateRejMsg converts a client.ChannelUpdateRejMsg to a protobuf Envelope_ChannelUpdateRejMsg.

type Envelope_LedgerChannelProposalAccMsg

type Envelope_LedgerChannelProposalAccMsg struct {
	LedgerChannelProposalAccMsg *LedgerChannelProposalAccMsg `protobuf:"bytes,8,opt,name=ledger_channel_proposal_acc_msg,json=ledgerChannelProposalAccMsg,proto3,oneof"`
}

func FromLedgerChannelProposalAccMsg added in v0.11.0

func FromLedgerChannelProposalAccMsg(msg *client.LedgerChannelProposalAccMsg) (_ *Envelope_LedgerChannelProposalAccMsg, err error)

FromLedgerChannelProposalAccMsg converts a client LedgerChannelProposalAccMsg to a protobuf Envelope_LedgerChannelProposalAccMsg.

type Envelope_LedgerChannelProposalMsg

type Envelope_LedgerChannelProposalMsg struct {
	LedgerChannelProposalMsg *LedgerChannelProposalMsg `protobuf:"bytes,7,opt,name=ledger_channel_proposal_msg,json=ledgerChannelProposalMsg,proto3,oneof"`
}

func FromLedgerChannelProposalMsg added in v0.11.0

func FromLedgerChannelProposalMsg(msg *client.LedgerChannelProposalMsg) (_ *Envelope_LedgerChannelProposalMsg, err error)

FromLedgerChannelProposalMsg converts a client LedgerChannelProposalMsg to a protobuf Envelope_LedgerChannelProposalMsg.

type Envelope_PingMsg

type Envelope_PingMsg struct {
	PingMsg *PingMsg `protobuf:"bytes,3,opt,name=ping_msg,json=pingMsg,proto3,oneof"`
}

type Envelope_PongMsg

type Envelope_PongMsg struct {
	PongMsg *PongMsg `protobuf:"bytes,4,opt,name=pong_msg,json=pongMsg,proto3,oneof"`
}

type Envelope_ShutdownMsg

type Envelope_ShutdownMsg struct {
	ShutdownMsg *ShutdownMsg `protobuf:"bytes,5,opt,name=shutdown_msg,json=shutdownMsg,proto3,oneof"`
}

type Envelope_SubChannelProposalAccMsg

type Envelope_SubChannelProposalAccMsg struct {
	SubChannelProposalAccMsg *SubChannelProposalAccMsg `protobuf:"bytes,10,opt,name=sub_channel_proposal_acc_msg,json=subChannelProposalAccMsg,proto3,oneof"`
}

func FromSubChannelProposalAccMsg added in v0.11.0

func FromSubChannelProposalAccMsg(msg *client.SubChannelProposalAccMsg) (_ *Envelope_SubChannelProposalAccMsg)

FromSubChannelProposalAccMsg converts a client SubChannelProposalAccMsg to a protobuf Envelope_SubChannelProposalAccMsg.

type Envelope_SubChannelProposalMsg

type Envelope_SubChannelProposalMsg struct {
	SubChannelProposalMsg *SubChannelProposalMsg `protobuf:"bytes,9,opt,name=sub_channel_proposal_msg,json=subChannelProposalMsg,proto3,oneof"`
}

func FromSubChannelProposalMsg added in v0.11.0

func FromSubChannelProposalMsg(msg *client.SubChannelProposalMsg) (_ *Envelope_SubChannelProposalMsg, err error)

FromSubChannelProposalMsg converts a client SubChannelProposalMsg to a protobuf Envelope_SubChannelProposalMsg.

type Envelope_VirtualChannelFundingProposalMsg

type Envelope_VirtualChannelFundingProposalMsg struct {
	VirtualChannelFundingProposalMsg *VirtualChannelFundingProposalMsg `protobuf:"bytes,15,opt,name=virtual_channel_funding_proposal_msg,json=virtualChannelFundingProposalMsg,proto3,oneof"`
}

func FromVirtualChannelFundingProposalMsg added in v0.11.0

func FromVirtualChannelFundingProposalMsg(msg *client.VirtualChannelFundingProposalMsg) (
	_ *Envelope_VirtualChannelFundingProposalMsg,
	err error,
)

FromVirtualChannelFundingProposalMsg converts a client.VirtualChannelFundingProposalMsg to a protobuf Envelope_VirtualChannelFundingProposalMsg.

type Envelope_VirtualChannelProposalAccMsg

type Envelope_VirtualChannelProposalAccMsg struct {
	VirtualChannelProposalAccMsg *VirtualChannelProposalAccMsg `protobuf:"bytes,12,opt,name=virtual_channel_proposal_acc_msg,json=virtualChannelProposalAccMsg,proto3,oneof"`
}

func FromVirtualChannelProposalAccMsg added in v0.11.0

func FromVirtualChannelProposalAccMsg(msg *client.VirtualChannelProposalAccMsg) (_ *Envelope_VirtualChannelProposalAccMsg, err error)

FromVirtualChannelProposalAccMsg converts a client VirtualChannelProposalAccMsg to a protobuf Envelope_VirtualChannelProposalAccMsg.

type Envelope_VirtualChannelProposalMsg

type Envelope_VirtualChannelProposalMsg struct {
	VirtualChannelProposalMsg *VirtualChannelProposalMsg `protobuf:"bytes,11,opt,name=virtual_channel_proposal_msg,json=virtualChannelProposalMsg,proto3,oneof"`
}

func FromVirtualChannelProposalMsg added in v0.11.0

func FromVirtualChannelProposalMsg(msg *client.VirtualChannelProposalMsg) (_ *Envelope_VirtualChannelProposalMsg, err error)

FromVirtualChannelProposalMsg converts a client VirtualChannelProposalMsg to a protobuf Envelope_VirtualChannelProposalMsg.

type Envelope_VirtualChannelSettlementProposalMsg

type Envelope_VirtualChannelSettlementProposalMsg struct {
	VirtualChannelSettlementProposalMsg *VirtualChannelSettlementProposalMsg `protobuf:"bytes,16,opt,name=virtual_channel_settlement_proposal_msg,json=virtualChannelSettlementProposalMsg,proto3,oneof"`
}

func FromVirtualChannelSettlementProposalMsg added in v0.11.0

func FromVirtualChannelSettlementProposalMsg(msg *client.VirtualChannelSettlementProposalMsg) (
	_ *Envelope_VirtualChannelSettlementProposalMsg,
	err error,
)

FromVirtualChannelSettlementProposalMsg converts a client.VirtualChannelSettlementProposalMsg to a protobuf Envelope_VirtualChannelSettlementProposalMsg.

type IndexMap

type IndexMap struct {
	IndexMap []uint32 `protobuf:"varint,1,rep,packed,name=index_map,json=indexMap,proto3" json:"index_map,omitempty"`
	// contains filtered or unexported fields
}

IndexMap represents the mapping of a participant indices in a sub allocation or a virtual channel funding proposal to the corresponding indices in the parent channel.

func (*IndexMap) Descriptor deprecated

func (*IndexMap) Descriptor() ([]byte, []int)

Deprecated: Use IndexMap.ProtoReflect.Descriptor instead.

func (*IndexMap) GetIndexMap

func (x *IndexMap) GetIndexMap() []uint32

func (*IndexMap) ProtoMessage

func (*IndexMap) ProtoMessage()

func (*IndexMap) ProtoReflect

func (x *IndexMap) ProtoReflect() protoreflect.Message

func (*IndexMap) Reset

func (x *IndexMap) Reset()

func (*IndexMap) String

func (x *IndexMap) String() string

type LedgerChannelProposalAccMsg

type LedgerChannelProposalAccMsg struct {
	BaseChannelProposalAcc *BaseChannelProposalAcc `` /* 131-byte string literal not displayed */
	Participant            []byte                  `protobuf:"bytes,2,opt,name=participant,proto3" json:"participant,omitempty"`
	// contains filtered or unexported fields
}

LedgerChannelProposalAccMsg represents client.LedgerChannelProposalAccMsg.

func (*LedgerChannelProposalAccMsg) Descriptor deprecated

func (*LedgerChannelProposalAccMsg) Descriptor() ([]byte, []int)

Deprecated: Use LedgerChannelProposalAccMsg.ProtoReflect.Descriptor instead.

func (*LedgerChannelProposalAccMsg) GetBaseChannelProposalAcc

func (x *LedgerChannelProposalAccMsg) GetBaseChannelProposalAcc() *BaseChannelProposalAcc

func (*LedgerChannelProposalAccMsg) GetParticipant

func (x *LedgerChannelProposalAccMsg) GetParticipant() []byte

func (*LedgerChannelProposalAccMsg) ProtoMessage

func (*LedgerChannelProposalAccMsg) ProtoMessage()

func (*LedgerChannelProposalAccMsg) ProtoReflect

func (*LedgerChannelProposalAccMsg) Reset

func (x *LedgerChannelProposalAccMsg) Reset()

func (*LedgerChannelProposalAccMsg) String

func (x *LedgerChannelProposalAccMsg) String() string

type LedgerChannelProposalMsg

type LedgerChannelProposalMsg struct {
	BaseChannelProposal *BaseChannelProposal `protobuf:"bytes,1,opt,name=base_channel_proposal,json=baseChannelProposal,proto3" json:"base_channel_proposal,omitempty"`
	Participant         []byte               `protobuf:"bytes,2,opt,name=participant,proto3" json:"participant,omitempty"`
	Peers               [][]byte             `protobuf:"bytes,3,rep,name=peers,proto3" json:"peers,omitempty"`
	// contains filtered or unexported fields
}

LedgerChannelProposalMsg represents client.LedgerChannelProposalMsg.

func (*LedgerChannelProposalMsg) Descriptor deprecated

func (*LedgerChannelProposalMsg) Descriptor() ([]byte, []int)

Deprecated: Use LedgerChannelProposalMsg.ProtoReflect.Descriptor instead.

func (*LedgerChannelProposalMsg) GetBaseChannelProposal

func (x *LedgerChannelProposalMsg) GetBaseChannelProposal() *BaseChannelProposal

func (*LedgerChannelProposalMsg) GetParticipant

func (x *LedgerChannelProposalMsg) GetParticipant() []byte

func (*LedgerChannelProposalMsg) GetPeers

func (x *LedgerChannelProposalMsg) GetPeers() [][]byte

func (*LedgerChannelProposalMsg) ProtoMessage

func (*LedgerChannelProposalMsg) ProtoMessage()

func (*LedgerChannelProposalMsg) ProtoReflect

func (x *LedgerChannelProposalMsg) ProtoReflect() protoreflect.Message

func (*LedgerChannelProposalMsg) Reset

func (x *LedgerChannelProposalMsg) Reset()

func (*LedgerChannelProposalMsg) String

func (x *LedgerChannelProposalMsg) String() string

type Params

type Params struct {
	Id                []byte   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ChallengeDuration uint64   `protobuf:"varint,2,opt,name=challenge_duration,json=challengeDuration,proto3" json:"challenge_duration,omitempty"`
	Parts             [][]byte `protobuf:"bytes,3,rep,name=parts,proto3" json:"parts,omitempty"`
	App               []byte   `protobuf:"bytes,4,opt,name=app,proto3" json:"app,omitempty"`
	Nonce             []byte   `protobuf:"bytes,5,opt,name=nonce,proto3" json:"nonce,omitempty"`
	LedgerChannel     bool     `protobuf:"varint,6,opt,name=ledger_channel,json=ledgerChannel,proto3" json:"ledger_channel,omitempty"`
	VirtualChannel    bool     `protobuf:"varint,7,opt,name=virtual_channel,json=virtualChannel,proto3" json:"virtual_channel,omitempty"`
	// contains filtered or unexported fields
}

Params represents channel.Params.

func FromParams added in v0.11.0

func FromParams(params *channel.Params) (protoParams *Params, err error)

FromParams converts a channel.Params to a protobuf Params.

func (*Params) Descriptor deprecated

func (*Params) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetApp

func (x *Params) GetApp() []byte

func (*Params) GetChallengeDuration

func (x *Params) GetChallengeDuration() uint64

func (*Params) GetId

func (x *Params) GetId() []byte

func (*Params) GetLedgerChannel

func (x *Params) GetLedgerChannel() bool

func (*Params) GetNonce

func (x *Params) GetNonce() []byte

func (*Params) GetParts

func (x *Params) GetParts() [][]byte

func (*Params) GetVirtualChannel

func (x *Params) GetVirtualChannel() bool

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type PingMsg

type PingMsg struct {
	Created int64 `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

PingMsg represents wire.PingMsg.

func (*PingMsg) Descriptor deprecated

func (*PingMsg) Descriptor() ([]byte, []int)

Deprecated: Use PingMsg.ProtoReflect.Descriptor instead.

func (*PingMsg) GetCreated

func (x *PingMsg) GetCreated() int64

func (*PingMsg) ProtoMessage

func (*PingMsg) ProtoMessage()

func (*PingMsg) ProtoReflect

func (x *PingMsg) ProtoReflect() protoreflect.Message

func (*PingMsg) Reset

func (x *PingMsg) Reset()

func (*PingMsg) String

func (x *PingMsg) String() string

type PongMsg

type PongMsg struct {
	Created int64 `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

PongMsg represents wire.PongMsg.

func (*PongMsg) Descriptor deprecated

func (*PongMsg) Descriptor() ([]byte, []int)

Deprecated: Use PongMsg.ProtoReflect.Descriptor instead.

func (*PongMsg) GetCreated

func (x *PongMsg) GetCreated() int64

func (*PongMsg) ProtoMessage

func (*PongMsg) ProtoMessage()

func (*PongMsg) ProtoReflect

func (x *PongMsg) ProtoReflect() protoreflect.Message

func (*PongMsg) Reset

func (x *PongMsg) Reset()

func (*PongMsg) String

func (x *PongMsg) String() string

type ShutdownMsg

type ShutdownMsg struct {
	Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

ShutdownMsg represents wire.ShutdownMsg.

func (*ShutdownMsg) Descriptor deprecated

func (*ShutdownMsg) Descriptor() ([]byte, []int)

Deprecated: Use ShutdownMsg.ProtoReflect.Descriptor instead.

func (*ShutdownMsg) GetReason

func (x *ShutdownMsg) GetReason() string

func (*ShutdownMsg) ProtoMessage

func (*ShutdownMsg) ProtoMessage()

func (*ShutdownMsg) ProtoReflect

func (x *ShutdownMsg) ProtoReflect() protoreflect.Message

func (*ShutdownMsg) Reset

func (x *ShutdownMsg) Reset()

func (*ShutdownMsg) String

func (x *ShutdownMsg) String() string

type SignedState

type SignedState struct {
	Params *Params  `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	State  *State   `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	Sigs   [][]byte `protobuf:"bytes,3,rep,name=sigs,proto3" json:"sigs,omitempty"`
	// contains filtered or unexported fields
}

SignedState represents channel.SignedState.

func FromSignedState added in v0.11.0

func FromSignedState(signedState *channel.SignedState) (protoSignedState *SignedState, err error)

FromSignedState converts a channel.SignedState to a protobuf SignedState.

func (*SignedState) Descriptor deprecated

func (*SignedState) Descriptor() ([]byte, []int)

Deprecated: Use SignedState.ProtoReflect.Descriptor instead.

func (*SignedState) GetParams

func (x *SignedState) GetParams() *Params

func (*SignedState) GetSigs

func (x *SignedState) GetSigs() [][]byte

func (*SignedState) GetState

func (x *SignedState) GetState() *State

func (*SignedState) ProtoMessage

func (*SignedState) ProtoMessage()

func (*SignedState) ProtoReflect

func (x *SignedState) ProtoReflect() protoreflect.Message

func (*SignedState) Reset

func (x *SignedState) Reset()

func (*SignedState) String

func (x *SignedState) String() string

type State

type State struct {
	Id         []byte      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Version    uint64      `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	App        []byte      `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"`
	Allocation *Allocation `protobuf:"bytes,4,opt,name=allocation,proto3" json:"allocation,omitempty"`
	Data       []byte      `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	IsFinal    bool        `protobuf:"varint,6,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
	// contains filtered or unexported fields
}

State represents channel.State.

func FromState added in v0.11.0

func FromState(state *channel.State) (protoState *State, err error)

FromState converts a channel.State to a protobuf State.

func (*State) Descriptor deprecated

func (*State) Descriptor() ([]byte, []int)

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetAllocation

func (x *State) GetAllocation() *Allocation

func (*State) GetApp

func (x *State) GetApp() []byte

func (*State) GetData

func (x *State) GetData() []byte

func (*State) GetId

func (x *State) GetId() []byte

func (*State) GetIsFinal

func (x *State) GetIsFinal() bool

func (*State) GetVersion

func (x *State) GetVersion() uint64

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

func (x *State) ProtoReflect() protoreflect.Message

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

type SubAlloc

type SubAlloc struct {
	Id       []byte    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Bals     *Balance  `protobuf:"bytes,2,opt,name=bals,proto3" json:"bals,omitempty"`
	IndexMap *IndexMap `protobuf:"bytes,3,opt,name=index_map,json=indexMap,proto3" json:"index_map,omitempty"`
	// contains filtered or unexported fields
}

SubAlloc represts a sub allocation.

func FromSubAlloc added in v0.11.0

func FromSubAlloc(subAlloc channel.SubAlloc) (protoSubAlloc *SubAlloc, err error)

FromSubAlloc converts a channel.SubAlloc to a protobuf SubAlloc.

func (*SubAlloc) Descriptor deprecated

func (*SubAlloc) Descriptor() ([]byte, []int)

Deprecated: Use SubAlloc.ProtoReflect.Descriptor instead.

func (*SubAlloc) GetBals

func (x *SubAlloc) GetBals() *Balance

func (*SubAlloc) GetId

func (x *SubAlloc) GetId() []byte

func (*SubAlloc) GetIndexMap

func (x *SubAlloc) GetIndexMap() *IndexMap

func (*SubAlloc) ProtoMessage

func (*SubAlloc) ProtoMessage()

func (*SubAlloc) ProtoReflect

func (x *SubAlloc) ProtoReflect() protoreflect.Message

func (*SubAlloc) Reset

func (x *SubAlloc) Reset()

func (*SubAlloc) String

func (x *SubAlloc) String() string

type SubChannelProposalAccMsg

type SubChannelProposalAccMsg struct {
	BaseChannelProposalAcc *BaseChannelProposalAcc `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

SubChannelProposalAccMsg represents client.SubChannelProposalAccMsg.

func (*SubChannelProposalAccMsg) Descriptor deprecated

func (*SubChannelProposalAccMsg) Descriptor() ([]byte, []int)

Deprecated: Use SubChannelProposalAccMsg.ProtoReflect.Descriptor instead.

func (*SubChannelProposalAccMsg) GetBaseChannelProposalAcc

func (x *SubChannelProposalAccMsg) GetBaseChannelProposalAcc() *BaseChannelProposalAcc

func (*SubChannelProposalAccMsg) ProtoMessage

func (*SubChannelProposalAccMsg) ProtoMessage()

func (*SubChannelProposalAccMsg) ProtoReflect

func (x *SubChannelProposalAccMsg) ProtoReflect() protoreflect.Message

func (*SubChannelProposalAccMsg) Reset

func (x *SubChannelProposalAccMsg) Reset()

func (*SubChannelProposalAccMsg) String

func (x *SubChannelProposalAccMsg) String() string

type SubChannelProposalMsg

type SubChannelProposalMsg struct {
	BaseChannelProposal *BaseChannelProposal `protobuf:"bytes,1,opt,name=base_channel_proposal,json=baseChannelProposal,proto3" json:"base_channel_proposal,omitempty"`
	Parent              []byte               `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

SubChannelProposalMsg represents client.SubChannelProposalMsg.

func (*SubChannelProposalMsg) Descriptor deprecated

func (*SubChannelProposalMsg) Descriptor() ([]byte, []int)

Deprecated: Use SubChannelProposalMsg.ProtoReflect.Descriptor instead.

func (*SubChannelProposalMsg) GetBaseChannelProposal

func (x *SubChannelProposalMsg) GetBaseChannelProposal() *BaseChannelProposal

func (*SubChannelProposalMsg) GetParent

func (x *SubChannelProposalMsg) GetParent() []byte

func (*SubChannelProposalMsg) ProtoMessage

func (*SubChannelProposalMsg) ProtoMessage()

func (*SubChannelProposalMsg) ProtoReflect

func (x *SubChannelProposalMsg) ProtoReflect() protoreflect.Message

func (*SubChannelProposalMsg) Reset

func (x *SubChannelProposalMsg) Reset()

func (*SubChannelProposalMsg) String

func (x *SubChannelProposalMsg) String() string

type Transaction

type Transaction struct {
	State *State   `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	Sigs  [][]byte `protobuf:"bytes,2,rep,name=sigs,proto3" json:"sigs,omitempty"`
	// contains filtered or unexported fields
}

Transaction represents channel.Transaction.

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetSigs

func (x *Transaction) GetSigs() [][]byte

func (*Transaction) GetState

func (x *Transaction) GetState() *State

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type VirtualChannelFundingProposalMsg

type VirtualChannelFundingProposalMsg struct {
	ChannelUpdateMsg *ChannelUpdateMsg `protobuf:"bytes,1,opt,name=channel_update_msg,json=channelUpdateMsg,proto3" json:"channel_update_msg,omitempty"`
	Initial          *SignedState      `protobuf:"bytes,2,opt,name=initial,proto3" json:"initial,omitempty"`
	IndexMap         *IndexMap         `protobuf:"bytes,3,opt,name=index_map,json=indexMap,proto3" json:"index_map,omitempty"`
	// contains filtered or unexported fields
}

VirtualChannelFundingProposalMsg represents client.VirtualChannelFundingProposalMsg.

func (*VirtualChannelFundingProposalMsg) Descriptor deprecated

func (*VirtualChannelFundingProposalMsg) Descriptor() ([]byte, []int)

Deprecated: Use VirtualChannelFundingProposalMsg.ProtoReflect.Descriptor instead.

func (*VirtualChannelFundingProposalMsg) GetChannelUpdateMsg

func (x *VirtualChannelFundingProposalMsg) GetChannelUpdateMsg() *ChannelUpdateMsg

func (*VirtualChannelFundingProposalMsg) GetIndexMap

func (x *VirtualChannelFundingProposalMsg) GetIndexMap() *IndexMap

func (*VirtualChannelFundingProposalMsg) GetInitial

func (*VirtualChannelFundingProposalMsg) ProtoMessage

func (*VirtualChannelFundingProposalMsg) ProtoMessage()

func (*VirtualChannelFundingProposalMsg) ProtoReflect

func (*VirtualChannelFundingProposalMsg) Reset

func (*VirtualChannelFundingProposalMsg) String

type VirtualChannelProposalAccMsg

type VirtualChannelProposalAccMsg struct {
	BaseChannelProposalAcc *BaseChannelProposalAcc `` /* 131-byte string literal not displayed */
	Responder              []byte                  `protobuf:"bytes,2,opt,name=responder,proto3" json:"responder,omitempty"`
	// contains filtered or unexported fields
}

VirtualChannelProposalAccMsg represents client.VirtualChannelProposalAccMsg.

func (*VirtualChannelProposalAccMsg) Descriptor deprecated

func (*VirtualChannelProposalAccMsg) Descriptor() ([]byte, []int)

Deprecated: Use VirtualChannelProposalAccMsg.ProtoReflect.Descriptor instead.

func (*VirtualChannelProposalAccMsg) GetBaseChannelProposalAcc

func (x *VirtualChannelProposalAccMsg) GetBaseChannelProposalAcc() *BaseChannelProposalAcc

func (*VirtualChannelProposalAccMsg) GetResponder

func (x *VirtualChannelProposalAccMsg) GetResponder() []byte

func (*VirtualChannelProposalAccMsg) ProtoMessage

func (*VirtualChannelProposalAccMsg) ProtoMessage()

func (*VirtualChannelProposalAccMsg) ProtoReflect

func (*VirtualChannelProposalAccMsg) Reset

func (x *VirtualChannelProposalAccMsg) Reset()

func (*VirtualChannelProposalAccMsg) String

type VirtualChannelProposalMsg

type VirtualChannelProposalMsg struct {
	BaseChannelProposal *BaseChannelProposal `protobuf:"bytes,1,opt,name=base_channel_proposal,json=baseChannelProposal,proto3" json:"base_channel_proposal,omitempty"`
	Proposer            []byte               `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	Peers               [][]byte             `protobuf:"bytes,3,rep,name=peers,proto3" json:"peers,omitempty"`
	Parents             [][]byte             `protobuf:"bytes,4,rep,name=parents,proto3" json:"parents,omitempty"`
	IndexMaps           []*IndexMap          `protobuf:"bytes,5,rep,name=index_maps,json=indexMaps,proto3" json:"index_maps,omitempty"`
	// contains filtered or unexported fields
}

VirtualChannelProposalMsg represents client.VirtualChannelProposalMsg.

func (*VirtualChannelProposalMsg) Descriptor deprecated

func (*VirtualChannelProposalMsg) Descriptor() ([]byte, []int)

Deprecated: Use VirtualChannelProposalMsg.ProtoReflect.Descriptor instead.

func (*VirtualChannelProposalMsg) GetBaseChannelProposal

func (x *VirtualChannelProposalMsg) GetBaseChannelProposal() *BaseChannelProposal

func (*VirtualChannelProposalMsg) GetIndexMaps

func (x *VirtualChannelProposalMsg) GetIndexMaps() []*IndexMap

func (*VirtualChannelProposalMsg) GetParents

func (x *VirtualChannelProposalMsg) GetParents() [][]byte

func (*VirtualChannelProposalMsg) GetPeers

func (x *VirtualChannelProposalMsg) GetPeers() [][]byte

func (*VirtualChannelProposalMsg) GetProposer

func (x *VirtualChannelProposalMsg) GetProposer() []byte

func (*VirtualChannelProposalMsg) ProtoMessage

func (*VirtualChannelProposalMsg) ProtoMessage()

func (*VirtualChannelProposalMsg) ProtoReflect

func (*VirtualChannelProposalMsg) Reset

func (x *VirtualChannelProposalMsg) Reset()

func (*VirtualChannelProposalMsg) String

func (x *VirtualChannelProposalMsg) String() string

type VirtualChannelSettlementProposalMsg

type VirtualChannelSettlementProposalMsg struct {
	ChannelUpdateMsg *ChannelUpdateMsg `protobuf:"bytes,1,opt,name=channel_update_msg,json=channelUpdateMsg,proto3" json:"channel_update_msg,omitempty"`
	Final            *SignedState      `protobuf:"bytes,2,opt,name=final,proto3" json:"final,omitempty"`
	// contains filtered or unexported fields
}

VirtualChannelSettlementProposalMsg represents client.VirtualChannelSettlementProposalMsg.

func (*VirtualChannelSettlementProposalMsg) Descriptor deprecated

func (*VirtualChannelSettlementProposalMsg) Descriptor() ([]byte, []int)

Deprecated: Use VirtualChannelSettlementProposalMsg.ProtoReflect.Descriptor instead.

func (*VirtualChannelSettlementProposalMsg) GetChannelUpdateMsg

func (x *VirtualChannelSettlementProposalMsg) GetChannelUpdateMsg() *ChannelUpdateMsg

func (*VirtualChannelSettlementProposalMsg) GetFinal

func (*VirtualChannelSettlementProposalMsg) ProtoMessage

func (*VirtualChannelSettlementProposalMsg) ProtoMessage()

func (*VirtualChannelSettlementProposalMsg) ProtoReflect

func (*VirtualChannelSettlementProposalMsg) Reset

func (*VirtualChannelSettlementProposalMsg) String

Directories

Path Synopsis
Package test contains test helper functions for running generic tests for protobuf serialization.
Package test contains test helper functions for running generic tests for protobuf serialization.

Jump to

Keyboard shortcuts

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