Documentation ¶
Overview ¶
Package dkg is a generated protocol buffer package.
It is generated from these files:
dkg/dkg.proto
It has these top-level messages:
DKGPacket DKGResponse Deal Response Justification
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDkgServer ¶
Types ¶
type DKGPacket ¶
type DKGPacket struct { Deal *Deal `protobuf:"bytes,1,opt,name=deal" json:"deal,omitempty"` Response *Response `protobuf:"bytes,2,opt,name=response" json:"response,omitempty"` Justification *Justification `protobuf:"bytes,3,opt,name=justification" json:"justification,omitempty"` }
DKGPacket is used by the nodes to run the dkg protocol before being able to generate randomness beacons.
func (*DKGPacket) Descriptor ¶
func (*DKGPacket) GetJustification ¶
func (m *DKGPacket) GetJustification() *Justification
func (*DKGPacket) GetResponse ¶
func (*DKGPacket) ProtoMessage ¶
func (*DKGPacket) ProtoMessage()
type DKGResponse ¶
type DKGResponse struct { }
func (*DKGResponse) Descriptor ¶
func (*DKGResponse) Descriptor() ([]byte, []int)
func (*DKGResponse) ProtoMessage ¶
func (*DKGResponse) ProtoMessage()
func (*DKGResponse) Reset ¶
func (m *DKGResponse) Reset()
func (*DKGResponse) String ¶
func (m *DKGResponse) String() string
type Deal ¶
type Deal struct { // index of the dealer, the issuer of the share Index uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` // encrypted version of the deal Deal *vss.EncryptedDeal `protobuf:"bytes,2,opt,name=deal" json:"deal,omitempty"` }
Deal contains a share for a participant.
func (*Deal) Descriptor ¶
func (*Deal) GetDeal ¶
func (m *Deal) GetDeal() *vss.EncryptedDeal
func (*Deal) ProtoMessage ¶
func (*Deal) ProtoMessage()
type DkgClient ¶
type DkgClient interface {
Setup(ctx context.Context, in *DKGPacket, opts ...grpc.CallOption) (*DKGResponse, error)
}
func NewDkgClient ¶
func NewDkgClient(cc *grpc.ClientConn) DkgClient
type DkgServer ¶
type DkgServer interface {
Setup(context.Context, *DKGPacket) (*DKGResponse, error)
}
type Justification ¶
type Justification struct { // index of the dealer who is issuing this justification Index uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` // justification from the dealer Justification *vss.Justification `protobuf:"bytes,2,opt,name=justification" json:"justification,omitempty"` }
Justification holds the justification from a dealer after a participant issued a complaint response because of a supposedly invalid deal.
func (*Justification) Descriptor ¶
func (*Justification) Descriptor() ([]byte, []int)
func (*Justification) GetIndex ¶
func (m *Justification) GetIndex() uint32
func (*Justification) GetJustification ¶
func (m *Justification) GetJustification() *vss.Justification
func (*Justification) ProtoMessage ¶
func (*Justification) ProtoMessage()
func (*Justification) Reset ¶
func (m *Justification) Reset()
func (*Justification) String ¶
func (m *Justification) String() string
type Response ¶
type Response struct { // index of the dealer for which this response is for Index uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` // response from the participant which received a deal Response *vss.Response `protobuf:"bytes,2,opt,name=response" json:"response,omitempty"` }
Response holds the response that a participant broadcast after having received a deal.
func (*Response) Descriptor ¶
func (*Response) GetResponse ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.