control

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterControlServer

func RegisterControlServer(s *grpc.Server, srv ControlServer)

Types

type CokeyRequest

type CokeyRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CokeyRequest requests the collective key of a drand node

func (*CokeyRequest) Descriptor

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

func (*CokeyRequest) ProtoMessage

func (*CokeyRequest) ProtoMessage()

func (*CokeyRequest) Reset

func (m *CokeyRequest) Reset()

func (*CokeyRequest) String

func (m *CokeyRequest) String() string

func (*CokeyRequest) XXX_DiscardUnknown added in v0.4.1

func (m *CokeyRequest) XXX_DiscardUnknown()

func (*CokeyRequest) XXX_Marshal added in v0.4.1

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

func (*CokeyRequest) XXX_Merge added in v0.4.1

func (dst *CokeyRequest) XXX_Merge(src proto.Message)

func (*CokeyRequest) XXX_Size added in v0.4.1

func (m *CokeyRequest) XXX_Size() int

func (*CokeyRequest) XXX_Unmarshal added in v0.4.1

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

type CokeyResponse

type CokeyResponse struct {
	CoKey                *crypto.Point `protobuf:"bytes,1,opt,name=coKey,proto3" json:"coKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

CokeyResponse holds the collective key of a drand node

func (*CokeyResponse) Descriptor

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

func (*CokeyResponse) GetCoKey

func (m *CokeyResponse) GetCoKey() *crypto.Point

func (*CokeyResponse) ProtoMessage

func (*CokeyResponse) ProtoMessage()

func (*CokeyResponse) Reset

func (m *CokeyResponse) Reset()

func (*CokeyResponse) String

func (m *CokeyResponse) String() string

func (*CokeyResponse) XXX_DiscardUnknown added in v0.4.1

func (m *CokeyResponse) XXX_DiscardUnknown()

func (*CokeyResponse) XXX_Marshal added in v0.4.1

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

func (*CokeyResponse) XXX_Merge added in v0.4.1

func (dst *CokeyResponse) XXX_Merge(src proto.Message)

func (*CokeyResponse) XXX_Size added in v0.4.1

func (m *CokeyResponse) XXX_Size() int

func (*CokeyResponse) XXX_Unmarshal added in v0.4.1

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

type ControlClient

type ControlClient interface {
	// PingPong returns an empty message. Purpose is to test the control port.
	PingPong(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error)
	// InitDKG sends information to daemon to start a fresh DKG protocol
	InitDKG(ctx context.Context, in *DKGRequest, opts ...grpc.CallOption) (*DKGResponse, error)
	// InitReshares sends all informations so that the drand node knows how to
	// proceeed during the next resharing protocol.
	InitReshare(ctx context.Context, in *ReshareRequest, opts ...grpc.CallOption) (*ReshareResponse, error)
	// Share returns the current private share used by the node
	Share(ctx context.Context, in *ShareRequest, opts ...grpc.CallOption) (*ShareResponse, error)
	// PublicKey returns the longterm public key of the drand node
	PublicKey(ctx context.Context, in *PublicKeyRequest, opts ...grpc.CallOption) (*PublicKeyResponse, error)
	// PrivateKey returns the longterm private key of the drand node
	PrivateKey(ctx context.Context, in *PrivateKeyRequest, opts ...grpc.CallOption) (*PrivateKeyResponse, error)
	// CollectiveKey returns the distributed public key used by the node
	CollectiveKey(ctx context.Context, in *CokeyRequest, opts ...grpc.CallOption) (*CokeyResponse, error)
	// Group returns the current group file used
	Group(ctx context.Context, in *GroupRequest, opts ...grpc.CallOption) (*GroupResponse, error)
}

ControlClient is the client API for Control service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewControlClient

func NewControlClient(cc *grpc.ClientConn) ControlClient

type ControlServer

type ControlServer interface {
	// PingPong returns an empty message. Purpose is to test the control port.
	PingPong(context.Context, *Ping) (*Pong, error)
	// InitDKG sends information to daemon to start a fresh DKG protocol
	InitDKG(context.Context, *DKGRequest) (*DKGResponse, error)
	// InitReshares sends all informations so that the drand node knows how to
	// proceeed during the next resharing protocol.
	InitReshare(context.Context, *ReshareRequest) (*ReshareResponse, error)
	// Share returns the current private share used by the node
	Share(context.Context, *ShareRequest) (*ShareResponse, error)
	// PublicKey returns the longterm public key of the drand node
	PublicKey(context.Context, *PublicKeyRequest) (*PublicKeyResponse, error)
	// PrivateKey returns the longterm private key of the drand node
	PrivateKey(context.Context, *PrivateKeyRequest) (*PrivateKeyResponse, error)
	// CollectiveKey returns the distributed public key used by the node
	CollectiveKey(context.Context, *CokeyRequest) (*CokeyResponse, error)
	// Group returns the current group file used
	Group(context.Context, *GroupRequest) (*GroupResponse, error)
}

ControlServer is the server API for Control service.

type DKGRequest

type DKGRequest struct {
	DkgGroup             *GroupInfo `protobuf:"bytes,1,opt,name=dkg_group,json=dkgGroup,proto3" json:"dkg_group,omitempty"`
	IsLeader             bool       `protobuf:"varint,2,opt,name=is_leader,json=isLeader,proto3" json:"is_leader,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*DKGRequest) Descriptor

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

func (*DKGRequest) GetDkgGroup

func (m *DKGRequest) GetDkgGroup() *GroupInfo

func (*DKGRequest) GetIsLeader

func (m *DKGRequest) GetIsLeader() bool

func (*DKGRequest) ProtoMessage

func (*DKGRequest) ProtoMessage()

func (*DKGRequest) Reset

func (m *DKGRequest) Reset()

func (*DKGRequest) String

func (m *DKGRequest) String() string

func (*DKGRequest) XXX_DiscardUnknown added in v0.4.1

func (m *DKGRequest) XXX_DiscardUnknown()

func (*DKGRequest) XXX_Marshal added in v0.4.1

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

func (*DKGRequest) XXX_Merge added in v0.4.1

func (dst *DKGRequest) XXX_Merge(src proto.Message)

func (*DKGRequest) XXX_Size added in v0.4.1

func (m *DKGRequest) XXX_Size() int

func (*DKGRequest) XXX_Unmarshal added in v0.4.1

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

type DKGResponse

type DKGResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*DKGResponse) XXX_DiscardUnknown added in v0.4.1

func (m *DKGResponse) XXX_DiscardUnknown()

func (*DKGResponse) XXX_Marshal added in v0.4.1

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

func (*DKGResponse) XXX_Merge added in v0.4.1

func (dst *DKGResponse) XXX_Merge(src proto.Message)

func (*DKGResponse) XXX_Size added in v0.4.1

func (m *DKGResponse) XXX_Size() int

func (*DKGResponse) XXX_Unmarshal added in v0.4.1

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

type GroupInfo

type GroupInfo struct {
	// Types that are valid to be assigned to Location:
	//	*GroupInfo_Path
	//	*GroupInfo_Url
	Location             isGroupInfo_Location `protobuf_oneof:"location"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*GroupInfo) Descriptor

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

func (*GroupInfo) GetLocation

func (m *GroupInfo) GetLocation() isGroupInfo_Location

func (*GroupInfo) GetPath

func (m *GroupInfo) GetPath() string

func (*GroupInfo) GetUrl

func (m *GroupInfo) GetUrl() string

func (*GroupInfo) ProtoMessage

func (*GroupInfo) ProtoMessage()

func (*GroupInfo) Reset

func (m *GroupInfo) Reset()

func (*GroupInfo) String

func (m *GroupInfo) String() string

func (*GroupInfo) XXX_DiscardUnknown added in v0.4.1

func (m *GroupInfo) XXX_DiscardUnknown()

func (*GroupInfo) XXX_Marshal added in v0.4.1

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

func (*GroupInfo) XXX_Merge added in v0.4.1

func (dst *GroupInfo) XXX_Merge(src proto.Message)

func (*GroupInfo) XXX_OneofFuncs

func (*GroupInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*GroupInfo) XXX_Size added in v0.4.1

func (m *GroupInfo) XXX_Size() int

func (*GroupInfo) XXX_Unmarshal added in v0.4.1

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

type GroupInfo_Path

type GroupInfo_Path struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}

type GroupInfo_Url

type GroupInfo_Url struct {
	Url string `protobuf:"bytes,2,opt,name=url,proto3,oneof"`
}

type GroupRequest

type GroupRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GroupRequest) Descriptor

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

func (*GroupRequest) ProtoMessage

func (*GroupRequest) ProtoMessage()

func (*GroupRequest) Reset

func (m *GroupRequest) Reset()

func (*GroupRequest) String

func (m *GroupRequest) String() string

func (*GroupRequest) XXX_DiscardUnknown added in v0.4.1

func (m *GroupRequest) XXX_DiscardUnknown()

func (*GroupRequest) XXX_Marshal added in v0.4.1

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

func (*GroupRequest) XXX_Merge added in v0.4.1

func (dst *GroupRequest) XXX_Merge(src proto.Message)

func (*GroupRequest) XXX_Size added in v0.4.1

func (m *GroupRequest) XXX_Size() int

func (*GroupRequest) XXX_Unmarshal added in v0.4.1

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

type GroupResponse

type GroupResponse struct {
	// TOML-encoded group file
	GroupToml            string   `protobuf:"bytes,1,opt,name=groupToml,proto3" json:"groupToml,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GroupResponse) Descriptor

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

func (*GroupResponse) GetGroupToml added in v0.4.1

func (m *GroupResponse) GetGroupToml() string

func (*GroupResponse) ProtoMessage

func (*GroupResponse) ProtoMessage()

func (*GroupResponse) Reset

func (m *GroupResponse) Reset()

func (*GroupResponse) String

func (m *GroupResponse) String() string

func (*GroupResponse) XXX_DiscardUnknown added in v0.4.1

func (m *GroupResponse) XXX_DiscardUnknown()

func (*GroupResponse) XXX_Marshal added in v0.4.1

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

func (*GroupResponse) XXX_Merge added in v0.4.1

func (dst *GroupResponse) XXX_Merge(src proto.Message)

func (*GroupResponse) XXX_Size added in v0.4.1

func (m *GroupResponse) XXX_Size() int

func (*GroupResponse) XXX_Unmarshal added in v0.4.1

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

type Ping

type Ping struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ping) Descriptor

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

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

func (*Ping) XXX_DiscardUnknown added in v0.4.1

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal added in v0.4.1

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

func (*Ping) XXX_Merge added in v0.4.1

func (dst *Ping) XXX_Merge(src proto.Message)

func (*Ping) XXX_Size added in v0.4.1

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal added in v0.4.1

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

type Pong

type Pong struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Pong) Descriptor

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

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) String

func (m *Pong) String() string

func (*Pong) XXX_DiscardUnknown added in v0.4.1

func (m *Pong) XXX_DiscardUnknown()

func (*Pong) XXX_Marshal added in v0.4.1

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

func (*Pong) XXX_Merge added in v0.4.1

func (dst *Pong) XXX_Merge(src proto.Message)

func (*Pong) XXX_Size added in v0.4.1

func (m *Pong) XXX_Size() int

func (*Pong) XXX_Unmarshal added in v0.4.1

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

type PrivateKeyRequest

type PrivateKeyRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PrivateKeyRequest requests the private key of a drand node

func (*PrivateKeyRequest) Descriptor

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

func (*PrivateKeyRequest) ProtoMessage

func (*PrivateKeyRequest) ProtoMessage()

func (*PrivateKeyRequest) Reset

func (m *PrivateKeyRequest) Reset()

func (*PrivateKeyRequest) String

func (m *PrivateKeyRequest) String() string

func (*PrivateKeyRequest) XXX_DiscardUnknown added in v0.4.1

func (m *PrivateKeyRequest) XXX_DiscardUnknown()

func (*PrivateKeyRequest) XXX_Marshal added in v0.4.1

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

func (*PrivateKeyRequest) XXX_Merge added in v0.4.1

func (dst *PrivateKeyRequest) XXX_Merge(src proto.Message)

func (*PrivateKeyRequest) XXX_Size added in v0.4.1

func (m *PrivateKeyRequest) XXX_Size() int

func (*PrivateKeyRequest) XXX_Unmarshal added in v0.4.1

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

type PrivateKeyResponse

type PrivateKeyResponse struct {
	PriKey               *crypto.Scalar `protobuf:"bytes,1,opt,name=priKey,proto3" json:"priKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

PrivateKeyResponse holds the private key of a drand node

func (*PrivateKeyResponse) Descriptor

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

func (*PrivateKeyResponse) GetPriKey

func (m *PrivateKeyResponse) GetPriKey() *crypto.Scalar

func (*PrivateKeyResponse) ProtoMessage

func (*PrivateKeyResponse) ProtoMessage()

func (*PrivateKeyResponse) Reset

func (m *PrivateKeyResponse) Reset()

func (*PrivateKeyResponse) String

func (m *PrivateKeyResponse) String() string

func (*PrivateKeyResponse) XXX_DiscardUnknown added in v0.4.1

func (m *PrivateKeyResponse) XXX_DiscardUnknown()

func (*PrivateKeyResponse) XXX_Marshal added in v0.4.1

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

func (*PrivateKeyResponse) XXX_Merge added in v0.4.1

func (dst *PrivateKeyResponse) XXX_Merge(src proto.Message)

func (*PrivateKeyResponse) XXX_Size added in v0.4.1

func (m *PrivateKeyResponse) XXX_Size() int

func (*PrivateKeyResponse) XXX_Unmarshal added in v0.4.1

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

type PublicKeyRequest

type PublicKeyRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PublicKeyRequest requests the public key of a drand node

func (*PublicKeyRequest) Descriptor

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

func (*PublicKeyRequest) ProtoMessage

func (*PublicKeyRequest) ProtoMessage()

func (*PublicKeyRequest) Reset

func (m *PublicKeyRequest) Reset()

func (*PublicKeyRequest) String

func (m *PublicKeyRequest) String() string

func (*PublicKeyRequest) XXX_DiscardUnknown added in v0.4.1

func (m *PublicKeyRequest) XXX_DiscardUnknown()

func (*PublicKeyRequest) XXX_Marshal added in v0.4.1

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

func (*PublicKeyRequest) XXX_Merge added in v0.4.1

func (dst *PublicKeyRequest) XXX_Merge(src proto.Message)

func (*PublicKeyRequest) XXX_Size added in v0.4.1

func (m *PublicKeyRequest) XXX_Size() int

func (*PublicKeyRequest) XXX_Unmarshal added in v0.4.1

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

type PublicKeyResponse

type PublicKeyResponse struct {
	PubKey               *crypto.Point `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

PublicKeyResponse holds the public key of a drand node

func (*PublicKeyResponse) Descriptor

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

func (*PublicKeyResponse) GetPubKey

func (m *PublicKeyResponse) GetPubKey() *crypto.Point

func (*PublicKeyResponse) ProtoMessage

func (*PublicKeyResponse) ProtoMessage()

func (*PublicKeyResponse) Reset

func (m *PublicKeyResponse) Reset()

func (*PublicKeyResponse) String

func (m *PublicKeyResponse) String() string

func (*PublicKeyResponse) XXX_DiscardUnknown added in v0.4.1

func (m *PublicKeyResponse) XXX_DiscardUnknown()

func (*PublicKeyResponse) XXX_Marshal added in v0.4.1

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

func (*PublicKeyResponse) XXX_Merge added in v0.4.1

func (dst *PublicKeyResponse) XXX_Merge(src proto.Message)

func (*PublicKeyResponse) XXX_Size added in v0.4.1

func (m *PublicKeyResponse) XXX_Size() int

func (*PublicKeyResponse) XXX_Unmarshal added in v0.4.1

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

type ReshareRequest

type ReshareRequest struct {
	// Old group that needs to issue the shares for the new group
	// NOTE: It can be empty / nil. In that case, the drand node will try to
	// load the group he belongs to at the moment, if any, and use it as the old
	// group.
	Old                  *GroupInfo `protobuf:"bytes,1,opt,name=old,proto3" json:"old,omitempty"`
	New                  *GroupInfo `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"`
	IsLeader             bool       `protobuf:"varint,3,opt,name=is_leader,json=isLeader,proto3" json:"is_leader,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

ReshareRequest contains references to the old and new group to perform the resharing protocol.

func (*ReshareRequest) Descriptor

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

func (*ReshareRequest) GetIsLeader

func (m *ReshareRequest) GetIsLeader() bool

func (*ReshareRequest) GetNew

func (m *ReshareRequest) GetNew() *GroupInfo

func (*ReshareRequest) GetOld

func (m *ReshareRequest) GetOld() *GroupInfo

func (*ReshareRequest) ProtoMessage

func (*ReshareRequest) ProtoMessage()

func (*ReshareRequest) Reset

func (m *ReshareRequest) Reset()

func (*ReshareRequest) String

func (m *ReshareRequest) String() string

func (*ReshareRequest) XXX_DiscardUnknown added in v0.4.1

func (m *ReshareRequest) XXX_DiscardUnknown()

func (*ReshareRequest) XXX_Marshal added in v0.4.1

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

func (*ReshareRequest) XXX_Merge added in v0.4.1

func (dst *ReshareRequest) XXX_Merge(src proto.Message)

func (*ReshareRequest) XXX_Size added in v0.4.1

func (m *ReshareRequest) XXX_Size() int

func (*ReshareRequest) XXX_Unmarshal added in v0.4.1

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

type ReshareResponse

type ReshareResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReshareResponse) Descriptor

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

func (*ReshareResponse) ProtoMessage

func (*ReshareResponse) ProtoMessage()

func (*ReshareResponse) Reset

func (m *ReshareResponse) Reset()

func (*ReshareResponse) String

func (m *ReshareResponse) String() string

func (*ReshareResponse) XXX_DiscardUnknown added in v0.4.1

func (m *ReshareResponse) XXX_DiscardUnknown()

func (*ReshareResponse) XXX_Marshal added in v0.4.1

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

func (*ReshareResponse) XXX_Merge added in v0.4.1

func (dst *ReshareResponse) XXX_Merge(src proto.Message)

func (*ReshareResponse) XXX_Size added in v0.4.1

func (m *ReshareResponse) XXX_Size() int

func (*ReshareResponse) XXX_Unmarshal added in v0.4.1

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

type ShareRequest

type ShareRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ShareRequest requests the private share of a drand node

func (*ShareRequest) Descriptor

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

func (*ShareRequest) ProtoMessage

func (*ShareRequest) ProtoMessage()

func (*ShareRequest) Reset

func (m *ShareRequest) Reset()

func (*ShareRequest) String

func (m *ShareRequest) String() string

func (*ShareRequest) XXX_DiscardUnknown added in v0.4.1

func (m *ShareRequest) XXX_DiscardUnknown()

func (*ShareRequest) XXX_Marshal added in v0.4.1

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

func (*ShareRequest) XXX_Merge added in v0.4.1

func (dst *ShareRequest) XXX_Merge(src proto.Message)

func (*ShareRequest) XXX_Size added in v0.4.1

func (m *ShareRequest) XXX_Size() int

func (*ShareRequest) XXX_Unmarshal added in v0.4.1

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

type ShareResponse

type ShareResponse struct {
	Index                uint32         `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Share                *crypto.Scalar `protobuf:"bytes,2,opt,name=share,proto3" json:"share,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

ShareResponse holds the private share of a drand node

func (*ShareResponse) Descriptor

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

func (*ShareResponse) GetIndex

func (m *ShareResponse) GetIndex() uint32

func (*ShareResponse) GetShare

func (m *ShareResponse) GetShare() *crypto.Scalar

func (*ShareResponse) ProtoMessage

func (*ShareResponse) ProtoMessage()

func (*ShareResponse) Reset

func (m *ShareResponse) Reset()

func (*ShareResponse) String

func (m *ShareResponse) String() string

func (*ShareResponse) XXX_DiscardUnknown added in v0.4.1

func (m *ShareResponse) XXX_DiscardUnknown()

func (*ShareResponse) XXX_Marshal added in v0.4.1

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

func (*ShareResponse) XXX_Merge added in v0.4.1

func (dst *ShareResponse) XXX_Merge(src proto.Message)

func (*ShareResponse) XXX_Size added in v0.4.1

func (m *ShareResponse) XXX_Size() int

func (*ShareResponse) XXX_Unmarshal added in v0.4.1

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

Jump to

Keyboard shortcuts

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