chain

package
v0.2.5-dev Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelMigrationRequest

type ChannelMigrationRequest struct {
	// serialized entity.ChannelMigrationInfo message
	ChannelMigrationInfo []byte `protobuf:"bytes,1,opt,name=channel_migration_info,json=channelMigrationInfo,proto3" json:"channel_migration_info,omitempty"`
	// require an ascending order based on addresses associated with these sigs
	Sigs                 [][]byte `protobuf:"bytes,2,rep,name=sigs,proto3" json:"sigs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Next Tag: 3

func (*ChannelMigrationRequest) Descriptor

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

func (*ChannelMigrationRequest) GetChannelMigrationInfo

func (m *ChannelMigrationRequest) GetChannelMigrationInfo() []byte

func (*ChannelMigrationRequest) GetSigs

func (m *ChannelMigrationRequest) GetSigs() [][]byte

func (*ChannelMigrationRequest) ProtoMessage

func (*ChannelMigrationRequest) ProtoMessage()

func (*ChannelMigrationRequest) Reset

func (m *ChannelMigrationRequest) Reset()

func (*ChannelMigrationRequest) String

func (m *ChannelMigrationRequest) String() string

func (*ChannelMigrationRequest) XXX_DiscardUnknown

func (m *ChannelMigrationRequest) XXX_DiscardUnknown()

func (*ChannelMigrationRequest) XXX_Marshal

func (m *ChannelMigrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChannelMigrationRequest) XXX_Merge

func (m *ChannelMigrationRequest) XXX_Merge(src proto.Message)

func (*ChannelMigrationRequest) XXX_Size

func (m *ChannelMigrationRequest) XXX_Size() int

func (*ChannelMigrationRequest) XXX_Unmarshal

func (m *ChannelMigrationRequest) XXX_Unmarshal(b []byte) error

type CooperativeSettleRequest

type CooperativeSettleRequest struct {
	// serialized entity.CooperativeSettleInfo message
	SettleInfo []byte `protobuf:"bytes,1,opt,name=settle_info,json=settleInfo,proto3" json:"settle_info,omitempty"`
	// require an ascending order based on addresses associated with these sigs
	Sigs                 [][]byte `protobuf:"bytes,2,rep,name=sigs,proto3" json:"sigs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Next Tag: 3

func (*CooperativeSettleRequest) Descriptor

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

func (*CooperativeSettleRequest) GetSettleInfo

func (m *CooperativeSettleRequest) GetSettleInfo() []byte

func (*CooperativeSettleRequest) GetSigs

func (m *CooperativeSettleRequest) GetSigs() [][]byte

func (*CooperativeSettleRequest) ProtoMessage

func (*CooperativeSettleRequest) ProtoMessage()

func (*CooperativeSettleRequest) Reset

func (m *CooperativeSettleRequest) Reset()

func (*CooperativeSettleRequest) String

func (m *CooperativeSettleRequest) String() string

func (*CooperativeSettleRequest) XXX_DiscardUnknown

func (m *CooperativeSettleRequest) XXX_DiscardUnknown()

func (*CooperativeSettleRequest) XXX_Marshal

func (m *CooperativeSettleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CooperativeSettleRequest) XXX_Merge

func (m *CooperativeSettleRequest) XXX_Merge(src proto.Message)

func (*CooperativeSettleRequest) XXX_Size

func (m *CooperativeSettleRequest) XXX_Size() int

func (*CooperativeSettleRequest) XXX_Unmarshal

func (m *CooperativeSettleRequest) XXX_Unmarshal(b []byte) error

type CooperativeWithdrawRequest

type CooperativeWithdrawRequest struct {
	// serialized entity.CooperativeWithdrawInfo message
	WithdrawInfo []byte `protobuf:"bytes,1,opt,name=withdraw_info,json=withdrawInfo,proto3" json:"withdraw_info,omitempty"`
	// require an ascending order based on addresses associated with these sigs
	Sigs                 [][]byte `protobuf:"bytes,2,rep,name=sigs,proto3" json:"sigs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Next Tag: 3

func (*CooperativeWithdrawRequest) Descriptor

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

func (*CooperativeWithdrawRequest) GetSigs

func (m *CooperativeWithdrawRequest) GetSigs() [][]byte

func (*CooperativeWithdrawRequest) GetWithdrawInfo

func (m *CooperativeWithdrawRequest) GetWithdrawInfo() []byte

func (*CooperativeWithdrawRequest) ProtoMessage

func (*CooperativeWithdrawRequest) ProtoMessage()

func (*CooperativeWithdrawRequest) Reset

func (m *CooperativeWithdrawRequest) Reset()

func (*CooperativeWithdrawRequest) String

func (m *CooperativeWithdrawRequest) String() string

func (*CooperativeWithdrawRequest) XXX_DiscardUnknown

func (m *CooperativeWithdrawRequest) XXX_DiscardUnknown()

func (*CooperativeWithdrawRequest) XXX_Marshal

func (m *CooperativeWithdrawRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CooperativeWithdrawRequest) XXX_Merge

func (m *CooperativeWithdrawRequest) XXX_Merge(src proto.Message)

func (*CooperativeWithdrawRequest) XXX_Size

func (m *CooperativeWithdrawRequest) XXX_Size() int

func (*CooperativeWithdrawRequest) XXX_Unmarshal

func (m *CooperativeWithdrawRequest) XXX_Unmarshal(b []byte) error

type OpenChannelRequest

type OpenChannelRequest struct {
	// serialized entity.PaymentChannelInitializer message
	ChannelInitializer []byte `protobuf:"bytes,1,opt,name=channel_initializer,json=channelInitializer,proto3" json:"channel_initializer,omitempty"`
	// require an ascending order based on addresses associated with these sigs
	Sigs                 [][]byte `protobuf:"bytes,2,rep,name=sigs,proto3" json:"sigs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Next Tag: 3

func (*OpenChannelRequest) Descriptor

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

func (*OpenChannelRequest) GetChannelInitializer

func (m *OpenChannelRequest) GetChannelInitializer() []byte

func (*OpenChannelRequest) GetSigs

func (m *OpenChannelRequest) GetSigs() [][]byte

func (*OpenChannelRequest) ProtoMessage

func (*OpenChannelRequest) ProtoMessage()

func (*OpenChannelRequest) Reset

func (m *OpenChannelRequest) Reset()

func (*OpenChannelRequest) String

func (m *OpenChannelRequest) String() string

func (*OpenChannelRequest) XXX_DiscardUnknown

func (m *OpenChannelRequest) XXX_DiscardUnknown()

func (*OpenChannelRequest) XXX_Marshal

func (m *OpenChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OpenChannelRequest) XXX_Merge

func (m *OpenChannelRequest) XXX_Merge(src proto.Message)

func (*OpenChannelRequest) XXX_Size

func (m *OpenChannelRequest) XXX_Size() int

func (*OpenChannelRequest) XXX_Unmarshal

func (m *OpenChannelRequest) XXX_Unmarshal(b []byte) error

type ResolvePayByConditionsRequest

type ResolvePayByConditionsRequest struct {
	// serialized entity.ConditionalPay message
	CondPay []byte `protobuf:"bytes,1,opt,name=cond_pay,json=condPay,proto3" json:"cond_pay,omitempty"`
	// preimages of the cond_pay hash locks in the same order
	HashPreimages        [][]byte `protobuf:"bytes,2,rep,name=hash_preimages,json=hashPreimages,proto3" json:"hash_preimages,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Next Tag: 3

func (*ResolvePayByConditionsRequest) Descriptor

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

func (*ResolvePayByConditionsRequest) GetCondPay

func (m *ResolvePayByConditionsRequest) GetCondPay() []byte

func (*ResolvePayByConditionsRequest) GetHashPreimages

func (m *ResolvePayByConditionsRequest) GetHashPreimages() [][]byte

func (*ResolvePayByConditionsRequest) ProtoMessage

func (*ResolvePayByConditionsRequest) ProtoMessage()

func (*ResolvePayByConditionsRequest) Reset

func (m *ResolvePayByConditionsRequest) Reset()

func (*ResolvePayByConditionsRequest) String

func (*ResolvePayByConditionsRequest) XXX_DiscardUnknown

func (m *ResolvePayByConditionsRequest) XXX_DiscardUnknown()

func (*ResolvePayByConditionsRequest) XXX_Marshal

func (m *ResolvePayByConditionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResolvePayByConditionsRequest) XXX_Merge

func (m *ResolvePayByConditionsRequest) XXX_Merge(src proto.Message)

func (*ResolvePayByConditionsRequest) XXX_Size

func (m *ResolvePayByConditionsRequest) XXX_Size() int

func (*ResolvePayByConditionsRequest) XXX_Unmarshal

func (m *ResolvePayByConditionsRequest) XXX_Unmarshal(b []byte) error

type SignedSimplexState

type SignedSimplexState struct {
	// serialized entity.SimplexPaymentChannel message
	SimplexState []byte `protobuf:"bytes,1,opt,name=simplex_state,json=simplexState,proto3" json:"simplex_state,omitempty"`
	// require an ascending order based on addresses associated with these sigs
	Sigs                 [][]byte `protobuf:"bytes,2,rep,name=sigs,proto3" json:"sigs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Next Tag: 3

func (*SignedSimplexState) Descriptor

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

func (*SignedSimplexState) GetSigs

func (m *SignedSimplexState) GetSigs() [][]byte

func (*SignedSimplexState) GetSimplexState

func (m *SignedSimplexState) GetSimplexState() []byte

func (*SignedSimplexState) ProtoMessage

func (*SignedSimplexState) ProtoMessage()

func (*SignedSimplexState) Reset

func (m *SignedSimplexState) Reset()

func (*SignedSimplexState) String

func (m *SignedSimplexState) String() string

func (*SignedSimplexState) XXX_DiscardUnknown

func (m *SignedSimplexState) XXX_DiscardUnknown()

func (*SignedSimplexState) XXX_Marshal

func (m *SignedSimplexState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedSimplexState) XXX_Merge

func (m *SignedSimplexState) XXX_Merge(src proto.Message)

func (*SignedSimplexState) XXX_Size

func (m *SignedSimplexState) XXX_Size() int

func (*SignedSimplexState) XXX_Unmarshal

func (m *SignedSimplexState) XXX_Unmarshal(b []byte) error

type SignedSimplexStateArray

type SignedSimplexStateArray struct {
	SignedSimplexStates  []*SignedSimplexState `protobuf:"bytes,1,rep,name=signed_simplex_states,json=signedSimplexStates,proto3" json:"signed_simplex_states,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Next Tag: 2 Using this message to intendSettle is flexible:

  • you can put multiple signed simplex states in one array as long as not exceeding gas limit
  • you can put signed simplex states of multiple channels in one array to intendSettle these channels in one function call

How to use:

  • channelIds of these simplex states must be ascending
  • non-null simplex states should be cosigned by both peers of the channel
  • null simplex states should set seqNum as 0 and be signed by exactly one of the peers of the channel

Note: if you are submitting one simplex state of the duplex channel,

you are intending to settle the whole duplex channel.

func (*SignedSimplexStateArray) Descriptor

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

func (*SignedSimplexStateArray) GetSignedSimplexStates

func (m *SignedSimplexStateArray) GetSignedSimplexStates() []*SignedSimplexState

func (*SignedSimplexStateArray) ProtoMessage

func (*SignedSimplexStateArray) ProtoMessage()

func (*SignedSimplexStateArray) Reset

func (m *SignedSimplexStateArray) Reset()

func (*SignedSimplexStateArray) String

func (m *SignedSimplexStateArray) String() string

func (*SignedSimplexStateArray) XXX_DiscardUnknown

func (m *SignedSimplexStateArray) XXX_DiscardUnknown()

func (*SignedSimplexStateArray) XXX_Marshal

func (m *SignedSimplexStateArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedSimplexStateArray) XXX_Merge

func (m *SignedSimplexStateArray) XXX_Merge(src proto.Message)

func (*SignedSimplexStateArray) XXX_Size

func (m *SignedSimplexStateArray) XXX_Size() int

func (*SignedSimplexStateArray) XXX_Unmarshal

func (m *SignedSimplexStateArray) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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