Documentation ¶
Overview ¶
Package drand is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterControlServer(s *grpc.Server, srv ControlServer)
- func RegisterProtocolServer(s *grpc.Server, srv ProtocolServer)
- func RegisterPublicHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPublicHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicClient) error
- func RegisterPublicHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPublicServer(s *grpc.Server, srv PublicServer)
- type BeaconRequest
- func (*BeaconRequest) Descriptor() ([]byte, []int)
- func (m *BeaconRequest) GetPartialSig() []byte
- func (m *BeaconRequest) GetPreviousSig() []byte
- func (m *BeaconRequest) GetRound() uint64
- func (*BeaconRequest) ProtoMessage()
- func (m *BeaconRequest) Reset()
- func (m *BeaconRequest) String() string
- func (m *BeaconRequest) XXX_DiscardUnknown()
- func (m *BeaconRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BeaconRequest) XXX_Merge(src proto.Message)
- func (m *BeaconRequest) XXX_Size() int
- func (m *BeaconRequest) XXX_Unmarshal(b []byte) error
- type BeaconResponse
- func (*BeaconResponse) Descriptor() ([]byte, []int)
- func (m *BeaconResponse) GetPartialSig() []byte
- func (*BeaconResponse) ProtoMessage()
- func (m *BeaconResponse) Reset()
- func (m *BeaconResponse) String() string
- func (m *BeaconResponse) XXX_DiscardUnknown()
- func (m *BeaconResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BeaconResponse) XXX_Merge(src proto.Message)
- func (m *BeaconResponse) XXX_Size() int
- func (m *BeaconResponse) XXX_Unmarshal(b []byte) error
- type CokeyRequest
- func (*CokeyRequest) Descriptor() ([]byte, []int)
- func (*CokeyRequest) ProtoMessage()
- func (m *CokeyRequest) Reset()
- func (m *CokeyRequest) String() string
- func (m *CokeyRequest) XXX_DiscardUnknown()
- func (m *CokeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CokeyRequest) XXX_Merge(src proto.Message)
- func (m *CokeyRequest) XXX_Size() int
- func (m *CokeyRequest) XXX_Unmarshal(b []byte) error
- type CokeyResponse
- func (*CokeyResponse) Descriptor() ([]byte, []int)
- func (m *CokeyResponse) GetCoKey() []byte
- func (*CokeyResponse) ProtoMessage()
- func (m *CokeyResponse) Reset()
- func (m *CokeyResponse) String() string
- func (m *CokeyResponse) XXX_DiscardUnknown()
- func (m *CokeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CokeyResponse) XXX_Merge(src proto.Message)
- func (m *CokeyResponse) XXX_Size() int
- func (m *CokeyResponse) XXX_Unmarshal(b []byte) error
- type ControlClient
- type ControlServer
- type DistKeyRequest
- func (*DistKeyRequest) Descriptor() ([]byte, []int)
- func (*DistKeyRequest) ProtoMessage()
- func (m *DistKeyRequest) Reset()
- func (m *DistKeyRequest) String() string
- func (m *DistKeyRequest) XXX_DiscardUnknown()
- func (m *DistKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DistKeyRequest) XXX_Merge(src proto.Message)
- func (m *DistKeyRequest) XXX_Size() int
- func (m *DistKeyRequest) XXX_Unmarshal(b []byte) error
- type DistKeyResponse
- func (*DistKeyResponse) Descriptor() ([]byte, []int)
- func (m *DistKeyResponse) GetKey() []byte
- func (*DistKeyResponse) ProtoMessage()
- func (m *DistKeyResponse) Reset()
- func (m *DistKeyResponse) String() string
- func (m *DistKeyResponse) XXX_DiscardUnknown()
- func (m *DistKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DistKeyResponse) XXX_Merge(src proto.Message)
- func (m *DistKeyResponse) XXX_Size() int
- func (m *DistKeyResponse) XXX_Unmarshal(b []byte) error
- type ECIES
- func (*ECIES) Descriptor() ([]byte, []int)
- func (m *ECIES) GetCiphertext() []byte
- func (m *ECIES) GetEphemeral() []byte
- func (m *ECIES) GetNonce() []byte
- func (*ECIES) ProtoMessage()
- func (m *ECIES) Reset()
- func (m *ECIES) String() string
- func (m *ECIES) XXX_DiscardUnknown()
- func (m *ECIES) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ECIES) XXX_Merge(src proto.Message)
- func (m *ECIES) XXX_Size() int
- func (m *ECIES) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type GroupInfo
- func (*GroupInfo) Descriptor() ([]byte, []int)
- func (m *GroupInfo) GetLocation() isGroupInfo_Location
- func (m *GroupInfo) GetPath() string
- func (m *GroupInfo) GetUrl() string
- func (*GroupInfo) ProtoMessage()
- func (m *GroupInfo) Reset()
- func (m *GroupInfo) String() string
- func (m *GroupInfo) XXX_DiscardUnknown()
- func (m *GroupInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GroupInfo) XXX_Merge(src proto.Message)
- func (*GroupInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *GroupInfo) XXX_Size() int
- func (m *GroupInfo) XXX_Unmarshal(b []byte) error
- type GroupInfo_Path
- type GroupInfo_Url
- type GroupRequest
- func (*GroupRequest) Descriptor() ([]byte, []int)
- func (*GroupRequest) ProtoMessage()
- func (m *GroupRequest) Reset()
- func (m *GroupRequest) String() string
- func (m *GroupRequest) XXX_DiscardUnknown()
- func (m *GroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GroupRequest) XXX_Merge(src proto.Message)
- func (m *GroupRequest) XXX_Size() int
- func (m *GroupRequest) XXX_Unmarshal(b []byte) error
- type GroupResponse
- func (*GroupResponse) Descriptor() ([]byte, []int)
- func (m *GroupResponse) GetDistkey() []string
- func (m *GroupResponse) GetNodes() []*Node
- func (m *GroupResponse) GetPeriod() uint32
- func (m *GroupResponse) GetThreshold() uint32
- func (*GroupResponse) ProtoMessage()
- func (m *GroupResponse) Reset()
- func (m *GroupResponse) String() string
- func (m *GroupResponse) XXX_DiscardUnknown()
- func (m *GroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GroupResponse) XXX_Merge(src proto.Message)
- func (m *GroupResponse) XXX_Size() int
- func (m *GroupResponse) XXX_Unmarshal(b []byte) error
- type GroupTOMLRequest
- func (*GroupTOMLRequest) Descriptor() ([]byte, []int)
- func (*GroupTOMLRequest) ProtoMessage()
- func (m *GroupTOMLRequest) Reset()
- func (m *GroupTOMLRequest) String() string
- func (m *GroupTOMLRequest) XXX_DiscardUnknown()
- func (m *GroupTOMLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GroupTOMLRequest) XXX_Merge(src proto.Message)
- func (m *GroupTOMLRequest) XXX_Size() int
- func (m *GroupTOMLRequest) XXX_Unmarshal(b []byte) error
- type GroupTOMLResponse
- func (*GroupTOMLResponse) Descriptor() ([]byte, []int)
- func (m *GroupTOMLResponse) GetGroupToml() string
- func (*GroupTOMLResponse) ProtoMessage()
- func (m *GroupTOMLResponse) Reset()
- func (m *GroupTOMLResponse) String() string
- func (m *GroupTOMLResponse) XXX_DiscardUnknown()
- func (m *GroupTOMLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GroupTOMLResponse) XXX_Merge(src proto.Message)
- func (m *GroupTOMLResponse) XXX_Size() int
- func (m *GroupTOMLResponse) XXX_Unmarshal(b []byte) error
- type HomeRequest
- func (*HomeRequest) Descriptor() ([]byte, []int)
- func (*HomeRequest) ProtoMessage()
- func (m *HomeRequest) Reset()
- func (m *HomeRequest) String() string
- func (m *HomeRequest) XXX_DiscardUnknown()
- func (m *HomeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HomeRequest) XXX_Merge(src proto.Message)
- func (m *HomeRequest) XXX_Size() int
- func (m *HomeRequest) XXX_Unmarshal(b []byte) error
- type HomeResponse
- func (*HomeResponse) Descriptor() ([]byte, []int)
- func (m *HomeResponse) GetStatus() string
- func (*HomeResponse) ProtoMessage()
- func (m *HomeResponse) Reset()
- func (m *HomeResponse) String() string
- func (m *HomeResponse) XXX_DiscardUnknown()
- func (m *HomeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HomeResponse) XXX_Merge(src proto.Message)
- func (m *HomeResponse) XXX_Size() int
- func (m *HomeResponse) XXX_Unmarshal(b []byte) error
- type InitDKGPacket
- func (*InitDKGPacket) Descriptor() ([]byte, []int)
- func (m *InitDKGPacket) GetDkgGroup() *GroupInfo
- func (m *InitDKGPacket) GetIsLeader() bool
- func (m *InitDKGPacket) GetTimeout() string
- func (*InitDKGPacket) ProtoMessage()
- func (m *InitDKGPacket) Reset()
- func (m *InitDKGPacket) String() string
- func (m *InitDKGPacket) XXX_DiscardUnknown()
- func (m *InitDKGPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InitDKGPacket) XXX_Merge(src proto.Message)
- func (m *InitDKGPacket) XXX_Size() int
- func (m *InitDKGPacket) XXX_Unmarshal(b []byte) error
- type InitResharePacket
- func (*InitResharePacket) Descriptor() ([]byte, []int)
- func (m *InitResharePacket) GetIsLeader() bool
- func (m *InitResharePacket) GetNew() *GroupInfo
- func (m *InitResharePacket) GetOld() *GroupInfo
- func (m *InitResharePacket) GetTimeout() string
- func (*InitResharePacket) ProtoMessage()
- func (m *InitResharePacket) Reset()
- func (m *InitResharePacket) String() string
- func (m *InitResharePacket) XXX_DiscardUnknown()
- func (m *InitResharePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InitResharePacket) XXX_Merge(src proto.Message)
- func (m *InitResharePacket) XXX_Size() int
- func (m *InitResharePacket) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetAddress() string
- func (m *Node) GetKey() string
- func (m *Node) GetTLS() bool
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) String() string
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Ping
- func (*Ping) Descriptor() ([]byte, []int)
- func (*Ping) ProtoMessage()
- func (m *Ping) Reset()
- func (m *Ping) String() string
- func (m *Ping) XXX_DiscardUnknown()
- func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Ping) XXX_Merge(src proto.Message)
- func (m *Ping) XXX_Size() int
- func (m *Ping) XXX_Unmarshal(b []byte) error
- type Pong
- func (*Pong) Descriptor() ([]byte, []int)
- func (*Pong) ProtoMessage()
- func (m *Pong) Reset()
- func (m *Pong) String() string
- func (m *Pong) XXX_DiscardUnknown()
- func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Pong) XXX_Merge(src proto.Message)
- func (m *Pong) XXX_Size() int
- func (m *Pong) XXX_Unmarshal(b []byte) error
- type PrivateKeyRequest
- func (*PrivateKeyRequest) Descriptor() ([]byte, []int)
- func (*PrivateKeyRequest) ProtoMessage()
- func (m *PrivateKeyRequest) Reset()
- func (m *PrivateKeyRequest) String() string
- func (m *PrivateKeyRequest) XXX_DiscardUnknown()
- func (m *PrivateKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PrivateKeyRequest) XXX_Merge(src proto.Message)
- func (m *PrivateKeyRequest) XXX_Size() int
- func (m *PrivateKeyRequest) XXX_Unmarshal(b []byte) error
- type PrivateKeyResponse
- func (*PrivateKeyResponse) Descriptor() ([]byte, []int)
- func (m *PrivateKeyResponse) GetPriKey() []byte
- func (*PrivateKeyResponse) ProtoMessage()
- func (m *PrivateKeyResponse) Reset()
- func (m *PrivateKeyResponse) String() string
- func (m *PrivateKeyResponse) XXX_DiscardUnknown()
- func (m *PrivateKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PrivateKeyResponse) XXX_Merge(src proto.Message)
- func (m *PrivateKeyResponse) XXX_Size() int
- func (m *PrivateKeyResponse) XXX_Unmarshal(b []byte) error
- type PrivateRandRequest
- func (*PrivateRandRequest) Descriptor() ([]byte, []int)
- func (m *PrivateRandRequest) GetRequest() *ECIES
- func (*PrivateRandRequest) ProtoMessage()
- func (m *PrivateRandRequest) Reset()
- func (m *PrivateRandRequest) String() string
- func (m *PrivateRandRequest) XXX_DiscardUnknown()
- func (m *PrivateRandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PrivateRandRequest) XXX_Merge(src proto.Message)
- func (m *PrivateRandRequest) XXX_Size() int
- func (m *PrivateRandRequest) XXX_Unmarshal(b []byte) error
- type PrivateRandResponse
- func (*PrivateRandResponse) Descriptor() ([]byte, []int)
- func (m *PrivateRandResponse) GetResponse() *ECIES
- func (*PrivateRandResponse) ProtoMessage()
- func (m *PrivateRandResponse) Reset()
- func (m *PrivateRandResponse) String() string
- func (m *PrivateRandResponse) XXX_DiscardUnknown()
- func (m *PrivateRandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PrivateRandResponse) XXX_Merge(src proto.Message)
- func (m *PrivateRandResponse) XXX_Size() int
- func (m *PrivateRandResponse) XXX_Unmarshal(b []byte) error
- type ProtocolClient
- type ProtocolServer
- type PublicClient
- type PublicKeyRequest
- func (*PublicKeyRequest) Descriptor() ([]byte, []int)
- func (*PublicKeyRequest) ProtoMessage()
- func (m *PublicKeyRequest) Reset()
- func (m *PublicKeyRequest) String() string
- func (m *PublicKeyRequest) XXX_DiscardUnknown()
- func (m *PublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PublicKeyRequest) XXX_Merge(src proto.Message)
- func (m *PublicKeyRequest) XXX_Size() int
- func (m *PublicKeyRequest) XXX_Unmarshal(b []byte) error
- type PublicKeyResponse
- func (*PublicKeyResponse) Descriptor() ([]byte, []int)
- func (m *PublicKeyResponse) GetPubKey() []byte
- func (*PublicKeyResponse) ProtoMessage()
- func (m *PublicKeyResponse) Reset()
- func (m *PublicKeyResponse) String() string
- func (m *PublicKeyResponse) XXX_DiscardUnknown()
- func (m *PublicKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PublicKeyResponse) XXX_Merge(src proto.Message)
- func (m *PublicKeyResponse) XXX_Size() int
- func (m *PublicKeyResponse) XXX_Unmarshal(b []byte) error
- type PublicRandRequest
- func (*PublicRandRequest) Descriptor() ([]byte, []int)
- func (m *PublicRandRequest) GetRound() uint64
- func (*PublicRandRequest) ProtoMessage()
- func (m *PublicRandRequest) Reset()
- func (m *PublicRandRequest) String() string
- func (m *PublicRandRequest) XXX_DiscardUnknown()
- func (m *PublicRandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PublicRandRequest) XXX_Merge(src proto.Message)
- func (m *PublicRandRequest) XXX_Size() int
- func (m *PublicRandRequest) XXX_Unmarshal(b []byte) error
- type PublicRandResponse
- func (*PublicRandResponse) Descriptor() ([]byte, []int)
- func (m *PublicRandResponse) GetPrevious() []byte
- func (m *PublicRandResponse) GetRandomness() []byte
- func (m *PublicRandResponse) GetRound() uint64
- func (m *PublicRandResponse) GetSignature() []byte
- func (*PublicRandResponse) ProtoMessage()
- func (m *PublicRandResponse) Reset()
- func (m *PublicRandResponse) String() string
- func (m *PublicRandResponse) XXX_DiscardUnknown()
- func (m *PublicRandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PublicRandResponse) XXX_Merge(src proto.Message)
- func (m *PublicRandResponse) XXX_Size() int
- func (m *PublicRandResponse) XXX_Unmarshal(b []byte) error
- type PublicServer
- type ResharePacket
- func (*ResharePacket) Descriptor() ([]byte, []int)
- func (m *ResharePacket) GetDkg() *dkg.Packet
- func (m *ResharePacket) GetGroupHash() string
- func (*ResharePacket) ProtoMessage()
- func (m *ResharePacket) Reset()
- func (m *ResharePacket) String() string
- func (m *ResharePacket) XXX_DiscardUnknown()
- func (m *ResharePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ResharePacket) XXX_Merge(src proto.Message)
- func (m *ResharePacket) XXX_Size() int
- func (m *ResharePacket) XXX_Unmarshal(b []byte) error
- type SetupPacket
- func (*SetupPacket) Descriptor() ([]byte, []int)
- func (m *SetupPacket) GetDkg() *dkg.Packet
- func (*SetupPacket) ProtoMessage()
- func (m *SetupPacket) Reset()
- func (m *SetupPacket) String() string
- func (m *SetupPacket) XXX_DiscardUnknown()
- func (m *SetupPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SetupPacket) XXX_Merge(src proto.Message)
- func (m *SetupPacket) XXX_Size() int
- func (m *SetupPacket) XXX_Unmarshal(b []byte) error
- type ShareRequest
- func (*ShareRequest) Descriptor() ([]byte, []int)
- func (*ShareRequest) ProtoMessage()
- func (m *ShareRequest) Reset()
- func (m *ShareRequest) String() string
- func (m *ShareRequest) XXX_DiscardUnknown()
- func (m *ShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ShareRequest) XXX_Merge(src proto.Message)
- func (m *ShareRequest) XXX_Size() int
- func (m *ShareRequest) XXX_Unmarshal(b []byte) error
- type ShareResponse
- func (*ShareResponse) Descriptor() ([]byte, []int)
- func (m *ShareResponse) GetIndex() uint32
- func (m *ShareResponse) GetShare() []byte
- func (*ShareResponse) ProtoMessage()
- func (m *ShareResponse) Reset()
- func (m *ShareResponse) String() string
- func (m *ShareResponse) XXX_DiscardUnknown()
- func (m *ShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ShareResponse) XXX_Merge(src proto.Message)
- func (m *ShareResponse) XXX_Size() int
- func (m *ShareResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterControlServer ¶ added in v0.5.0
func RegisterControlServer(s *grpc.Server, srv ControlServer)
func RegisterProtocolServer ¶ added in v0.5.1
func RegisterProtocolServer(s *grpc.Server, srv ProtocolServer)
func RegisterPublicHandler ¶ added in v0.5.1
RegisterPublicHandler registers the http handlers for service Public to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPublicHandlerClient ¶ added in v0.5.1
func RegisterPublicHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicClient) error
RegisterPublicHandlerClient registers the http handlers for service Public to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PublicClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PublicClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PublicClient" to call the correct interceptors.
func RegisterPublicHandlerFromEndpoint ¶ added in v0.5.1
func RegisterPublicHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPublicHandlerFromEndpoint is same as RegisterPublicHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPublicServer ¶ added in v0.5.1
func RegisterPublicServer(s *grpc.Server, srv PublicServer)
Types ¶
type BeaconRequest ¶
type BeaconRequest struct { Round uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"` PreviousSig []byte `protobuf:"bytes,2,opt,name=previous_sig,json=previousSig,proto3" json:"previous_sig,omitempty"` // To prove the issuer comes from a valid node in the group // It is a group point prefixed by the index of the issuer PartialSig []byte `protobuf:"bytes,3,opt,name=partial_sig,json=partialSig,proto3" json:"partial_sig,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BeaconRequest holds a link to a previous signature, a timestamp and the partial signature for this beacon. All participants send and collects many of theses partial beacon packets to recreate locally one beacon
func (*BeaconRequest) Descriptor ¶
func (*BeaconRequest) Descriptor() ([]byte, []int)
func (*BeaconRequest) GetPartialSig ¶ added in v0.5.1
func (m *BeaconRequest) GetPartialSig() []byte
func (*BeaconRequest) GetPreviousSig ¶ added in v0.5.1
func (m *BeaconRequest) GetPreviousSig() []byte
func (*BeaconRequest) GetRound ¶
func (m *BeaconRequest) GetRound() uint64
func (*BeaconRequest) ProtoMessage ¶
func (*BeaconRequest) ProtoMessage()
func (*BeaconRequest) Reset ¶
func (m *BeaconRequest) Reset()
func (*BeaconRequest) String ¶
func (m *BeaconRequest) String() string
func (*BeaconRequest) XXX_DiscardUnknown ¶ added in v0.3.7
func (m *BeaconRequest) XXX_DiscardUnknown()
func (*BeaconRequest) XXX_Marshal ¶ added in v0.3.7
func (m *BeaconRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BeaconRequest) XXX_Merge ¶ added in v0.3.7
func (dst *BeaconRequest) XXX_Merge(src proto.Message)
func (*BeaconRequest) XXX_Size ¶ added in v0.3.7
func (m *BeaconRequest) XXX_Size() int
func (*BeaconRequest) XXX_Unmarshal ¶ added in v0.3.7
func (m *BeaconRequest) XXX_Unmarshal(b []byte) error
type BeaconResponse ¶
type BeaconResponse struct { PartialSig []byte `protobuf:"bytes,1,opt,name=partial_sig,json=partialSig,proto3" json:"partial_sig,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BeaconResponse) Descriptor ¶
func (*BeaconResponse) Descriptor() ([]byte, []int)
func (*BeaconResponse) GetPartialSig ¶ added in v0.5.1
func (m *BeaconResponse) GetPartialSig() []byte
func (*BeaconResponse) ProtoMessage ¶
func (*BeaconResponse) ProtoMessage()
func (*BeaconResponse) Reset ¶
func (m *BeaconResponse) Reset()
func (*BeaconResponse) String ¶
func (m *BeaconResponse) String() string
func (*BeaconResponse) XXX_DiscardUnknown ¶ added in v0.3.7
func (m *BeaconResponse) XXX_DiscardUnknown()
func (*BeaconResponse) XXX_Marshal ¶ added in v0.3.7
func (m *BeaconResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BeaconResponse) XXX_Merge ¶ added in v0.3.7
func (dst *BeaconResponse) XXX_Merge(src proto.Message)
func (*BeaconResponse) XXX_Size ¶ added in v0.3.7
func (m *BeaconResponse) XXX_Size() int
func (*BeaconResponse) XXX_Unmarshal ¶ added in v0.3.7
func (m *BeaconResponse) XXX_Unmarshal(b []byte) error
type CokeyRequest ¶ added in v0.5.0
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 ¶ added in v0.5.0
func (*CokeyRequest) Descriptor() ([]byte, []int)
func (*CokeyRequest) ProtoMessage ¶ added in v0.5.0
func (*CokeyRequest) ProtoMessage()
func (*CokeyRequest) Reset ¶ added in v0.5.0
func (m *CokeyRequest) Reset()
func (*CokeyRequest) String ¶ added in v0.5.0
func (m *CokeyRequest) String() string
func (*CokeyRequest) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *CokeyRequest) XXX_DiscardUnknown()
func (*CokeyRequest) XXX_Marshal ¶ added in v0.5.0
func (m *CokeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CokeyRequest) XXX_Merge ¶ added in v0.5.0
func (dst *CokeyRequest) XXX_Merge(src proto.Message)
func (*CokeyRequest) XXX_Size ¶ added in v0.5.0
func (m *CokeyRequest) XXX_Size() int
func (*CokeyRequest) XXX_Unmarshal ¶ added in v0.5.0
func (m *CokeyRequest) XXX_Unmarshal(b []byte) error
type CokeyResponse ¶ added in v0.5.0
type CokeyResponse struct { CoKey []byte `protobuf:"bytes,2,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 ¶ added in v0.5.0
func (*CokeyResponse) Descriptor() ([]byte, []int)
func (*CokeyResponse) GetCoKey ¶ added in v0.5.0
func (m *CokeyResponse) GetCoKey() []byte
func (*CokeyResponse) ProtoMessage ¶ added in v0.5.0
func (*CokeyResponse) ProtoMessage()
func (*CokeyResponse) Reset ¶ added in v0.5.0
func (m *CokeyResponse) Reset()
func (*CokeyResponse) String ¶ added in v0.5.0
func (m *CokeyResponse) String() string
func (*CokeyResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *CokeyResponse) XXX_DiscardUnknown()
func (*CokeyResponse) XXX_Marshal ¶ added in v0.5.0
func (m *CokeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CokeyResponse) XXX_Merge ¶ added in v0.5.0
func (dst *CokeyResponse) XXX_Merge(src proto.Message)
func (*CokeyResponse) XXX_Size ¶ added in v0.5.0
func (m *CokeyResponse) XXX_Size() int
func (*CokeyResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *CokeyResponse) XXX_Unmarshal(b []byte) error
type ControlClient ¶ added in v0.5.0
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 *InitDKGPacket, opts ...grpc.CallOption) (*Empty, error) // proceeed during the next resharing protocol. InitReshare(ctx context.Context, in *InitResharePacket, opts ...grpc.CallOption) (*Empty, error) 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) // GroupFile returns the TOML-encoded group file // similar to public.Group method but needed for ease of use of the // control functionalities GroupFile(ctx context.Context, in *GroupTOMLRequest, opts ...grpc.CallOption) (*GroupTOMLResponse, 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 ¶ added in v0.5.0
func NewControlClient(cc *grpc.ClientConn) ControlClient
type ControlServer ¶ added in v0.5.0
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, *InitDKGPacket) (*Empty, error) // proceeed during the next resharing protocol. InitReshare(context.Context, *InitResharePacket) (*Empty, error) 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) // GroupFile returns the TOML-encoded group file // similar to public.Group method but needed for ease of use of the // control functionalities GroupFile(context.Context, *GroupTOMLRequest) (*GroupTOMLResponse, error) }
ControlServer is the server API for Control service.
type DistKeyRequest ¶ added in v0.3.7
type DistKeyRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DistKeyRequest requests the distributed public key used during the randomness generation process
func (*DistKeyRequest) Descriptor ¶ added in v0.3.7
func (*DistKeyRequest) Descriptor() ([]byte, []int)
func (*DistKeyRequest) ProtoMessage ¶ added in v0.3.7
func (*DistKeyRequest) ProtoMessage()
func (*DistKeyRequest) Reset ¶ added in v0.3.7
func (m *DistKeyRequest) Reset()
func (*DistKeyRequest) String ¶ added in v0.3.7
func (m *DistKeyRequest) String() string
func (*DistKeyRequest) XXX_DiscardUnknown ¶ added in v0.3.7
func (m *DistKeyRequest) XXX_DiscardUnknown()
func (*DistKeyRequest) XXX_Marshal ¶ added in v0.3.7
func (m *DistKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DistKeyRequest) XXX_Merge ¶ added in v0.3.7
func (dst *DistKeyRequest) XXX_Merge(src proto.Message)
func (*DistKeyRequest) XXX_Size ¶ added in v0.3.7
func (m *DistKeyRequest) XXX_Size() int
func (*DistKeyRequest) XXX_Unmarshal ¶ added in v0.3.7
func (m *DistKeyRequest) XXX_Unmarshal(b []byte) error
type DistKeyResponse ¶ added in v0.3.7
type DistKeyResponse struct { Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DistKeyResponse) Descriptor ¶ added in v0.3.7
func (*DistKeyResponse) Descriptor() ([]byte, []int)
func (*DistKeyResponse) GetKey ¶ added in v0.3.7
func (m *DistKeyResponse) GetKey() []byte
func (*DistKeyResponse) ProtoMessage ¶ added in v0.3.7
func (*DistKeyResponse) ProtoMessage()
func (*DistKeyResponse) Reset ¶ added in v0.3.7
func (m *DistKeyResponse) Reset()
func (*DistKeyResponse) String ¶ added in v0.3.7
func (m *DistKeyResponse) String() string
func (*DistKeyResponse) XXX_DiscardUnknown ¶ added in v0.3.7
func (m *DistKeyResponse) XXX_DiscardUnknown()
func (*DistKeyResponse) XXX_Marshal ¶ added in v0.3.7
func (m *DistKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DistKeyResponse) XXX_Merge ¶ added in v0.3.7
func (dst *DistKeyResponse) XXX_Merge(src proto.Message)
func (*DistKeyResponse) XXX_Size ¶ added in v0.3.7
func (m *DistKeyResponse) XXX_Size() int
func (*DistKeyResponse) XXX_Unmarshal ¶ added in v0.3.7
func (m *DistKeyResponse) XXX_Unmarshal(b []byte) error
type ECIES ¶ added in v0.5.1
type ECIES struct { Ephemeral []byte `protobuf:"bytes,1,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"` Ciphertext []byte `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ECIES) Descriptor ¶ added in v0.5.1
func (*ECIES) GetCiphertext ¶ added in v0.5.1
func (*ECIES) GetEphemeral ¶ added in v0.5.1
func (*ECIES) ProtoMessage ¶ added in v0.5.1
func (*ECIES) ProtoMessage()
func (*ECIES) XXX_DiscardUnknown ¶ added in v0.5.1
func (m *ECIES) XXX_DiscardUnknown()
func (*ECIES) XXX_Marshal ¶ added in v0.5.1
func (*ECIES) XXX_Unmarshal ¶ added in v0.5.1
type Empty ¶ added in v0.5.1
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶ added in v0.5.1
func (*Empty) ProtoMessage ¶ added in v0.5.1
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶ added in v0.5.1
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶ added in v0.5.1
func (*Empty) XXX_Unmarshal ¶ added in v0.5.1
type GroupInfo ¶ added in v0.5.0
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 ¶ added in v0.5.0
func (*GroupInfo) GetLocation ¶ added in v0.5.0
func (m *GroupInfo) GetLocation() isGroupInfo_Location
func (*GroupInfo) ProtoMessage ¶ added in v0.5.0
func (*GroupInfo) ProtoMessage()
func (*GroupInfo) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *GroupInfo) XXX_DiscardUnknown()
func (*GroupInfo) XXX_Marshal ¶ added in v0.5.0
func (*GroupInfo) XXX_OneofFuncs ¶ added in v0.5.0
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_Unmarshal ¶ added in v0.5.0
type GroupInfo_Path ¶ added in v0.5.0
type GroupInfo_Path struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}
type GroupInfo_Url ¶ added in v0.5.0
type GroupInfo_Url struct {
Url string `protobuf:"bytes,2,opt,name=url,proto3,oneof"`
}
type GroupRequest ¶ added in v0.5.0
type GroupRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GroupRequest) Descriptor ¶ added in v0.5.0
func (*GroupRequest) Descriptor() ([]byte, []int)
func (*GroupRequest) ProtoMessage ¶ added in v0.5.0
func (*GroupRequest) ProtoMessage()
func (*GroupRequest) Reset ¶ added in v0.5.0
func (m *GroupRequest) Reset()
func (*GroupRequest) String ¶ added in v0.5.0
func (m *GroupRequest) String() string
func (*GroupRequest) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *GroupRequest) XXX_DiscardUnknown()
func (*GroupRequest) XXX_Marshal ¶ added in v0.5.0
func (m *GroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupRequest) XXX_Merge ¶ added in v0.5.0
func (dst *GroupRequest) XXX_Merge(src proto.Message)
func (*GroupRequest) XXX_Size ¶ added in v0.5.0
func (m *GroupRequest) XXX_Size() int
func (*GroupRequest) XXX_Unmarshal ¶ added in v0.5.0
func (m *GroupRequest) XXX_Unmarshal(b []byte) error
type GroupResponse ¶ added in v0.5.0
type GroupResponse struct { Threshold uint32 `protobuf:"varint,2,opt,name=threshold,proto3" json:"threshold,omitempty"` // in ms Period uint32 `protobuf:"varint,3,opt,name=period,proto3" json:"period,omitempty"` Nodes []*Node `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes,omitempty"` Distkey []string `protobuf:"bytes,5,rep,name=distkey,proto3" json:"distkey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GroupResponse contains the Group information currently used by the drand node in HEXADECIMAL the same format as the group.toml file.
func (*GroupResponse) Descriptor ¶ added in v0.5.0
func (*GroupResponse) Descriptor() ([]byte, []int)
func (*GroupResponse) GetDistkey ¶ added in v0.5.0
func (m *GroupResponse) GetDistkey() []string
func (*GroupResponse) GetNodes ¶ added in v0.5.0
func (m *GroupResponse) GetNodes() []*Node
func (*GroupResponse) GetPeriod ¶ added in v0.5.0
func (m *GroupResponse) GetPeriod() uint32
func (*GroupResponse) GetThreshold ¶ added in v0.5.0
func (m *GroupResponse) GetThreshold() uint32
func (*GroupResponse) ProtoMessage ¶ added in v0.5.0
func (*GroupResponse) ProtoMessage()
func (*GroupResponse) Reset ¶ added in v0.5.0
func (m *GroupResponse) Reset()
func (*GroupResponse) String ¶ added in v0.5.0
func (m *GroupResponse) String() string
func (*GroupResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *GroupResponse) XXX_DiscardUnknown()
func (*GroupResponse) XXX_Marshal ¶ added in v0.5.0
func (m *GroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupResponse) XXX_Merge ¶ added in v0.5.0
func (dst *GroupResponse) XXX_Merge(src proto.Message)
func (*GroupResponse) XXX_Size ¶ added in v0.5.0
func (m *GroupResponse) XXX_Size() int
func (*GroupResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *GroupResponse) XXX_Unmarshal(b []byte) error
type GroupTOMLRequest ¶ added in v0.5.0
type GroupTOMLRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GroupTOMLRequest) Descriptor ¶ added in v0.5.0
func (*GroupTOMLRequest) Descriptor() ([]byte, []int)
func (*GroupTOMLRequest) ProtoMessage ¶ added in v0.5.0
func (*GroupTOMLRequest) ProtoMessage()
func (*GroupTOMLRequest) Reset ¶ added in v0.5.0
func (m *GroupTOMLRequest) Reset()
func (*GroupTOMLRequest) String ¶ added in v0.5.0
func (m *GroupTOMLRequest) String() string
func (*GroupTOMLRequest) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *GroupTOMLRequest) XXX_DiscardUnknown()
func (*GroupTOMLRequest) XXX_Marshal ¶ added in v0.5.0
func (m *GroupTOMLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupTOMLRequest) XXX_Merge ¶ added in v0.5.0
func (dst *GroupTOMLRequest) XXX_Merge(src proto.Message)
func (*GroupTOMLRequest) XXX_Size ¶ added in v0.5.0
func (m *GroupTOMLRequest) XXX_Size() int
func (*GroupTOMLRequest) XXX_Unmarshal ¶ added in v0.5.0
func (m *GroupTOMLRequest) XXX_Unmarshal(b []byte) error
type GroupTOMLResponse ¶ added in v0.5.0
type GroupTOMLResponse struct { // TOML-encoded group file GroupToml string `protobuf:"bytes,1,opt,name=group_toml,json=groupToml,proto3" json:"group_toml,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GroupTOMLResponse) Descriptor ¶ added in v0.5.0
func (*GroupTOMLResponse) Descriptor() ([]byte, []int)
func (*GroupTOMLResponse) GetGroupToml ¶ added in v0.5.0
func (m *GroupTOMLResponse) GetGroupToml() string
func (*GroupTOMLResponse) ProtoMessage ¶ added in v0.5.0
func (*GroupTOMLResponse) ProtoMessage()
func (*GroupTOMLResponse) Reset ¶ added in v0.5.0
func (m *GroupTOMLResponse) Reset()
func (*GroupTOMLResponse) String ¶ added in v0.5.0
func (m *GroupTOMLResponse) String() string
func (*GroupTOMLResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *GroupTOMLResponse) XXX_DiscardUnknown()
func (*GroupTOMLResponse) XXX_Marshal ¶ added in v0.5.0
func (m *GroupTOMLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupTOMLResponse) XXX_Merge ¶ added in v0.5.0
func (dst *GroupTOMLResponse) XXX_Merge(src proto.Message)
func (*GroupTOMLResponse) XXX_Size ¶ added in v0.5.0
func (m *GroupTOMLResponse) XXX_Size() int
func (*GroupTOMLResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *GroupTOMLResponse) XXX_Unmarshal(b []byte) error
type HomeRequest ¶ added in v0.4.1
type HomeRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HomeRequest) Descriptor ¶ added in v0.4.1
func (*HomeRequest) Descriptor() ([]byte, []int)
func (*HomeRequest) ProtoMessage ¶ added in v0.4.1
func (*HomeRequest) ProtoMessage()
func (*HomeRequest) Reset ¶ added in v0.4.1
func (m *HomeRequest) Reset()
func (*HomeRequest) String ¶ added in v0.4.1
func (m *HomeRequest) String() string
func (*HomeRequest) XXX_DiscardUnknown ¶ added in v0.4.1
func (m *HomeRequest) XXX_DiscardUnknown()
func (*HomeRequest) XXX_Marshal ¶ added in v0.4.1
func (m *HomeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HomeRequest) XXX_Merge ¶ added in v0.4.1
func (dst *HomeRequest) XXX_Merge(src proto.Message)
func (*HomeRequest) XXX_Size ¶ added in v0.4.1
func (m *HomeRequest) XXX_Size() int
func (*HomeRequest) XXX_Unmarshal ¶ added in v0.4.1
func (m *HomeRequest) XXX_Unmarshal(b []byte) error
type HomeResponse ¶ added in v0.4.1
type HomeResponse struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HomeResponse) Descriptor ¶ added in v0.4.1
func (*HomeResponse) Descriptor() ([]byte, []int)
func (*HomeResponse) GetStatus ¶ added in v0.4.1
func (m *HomeResponse) GetStatus() string
func (*HomeResponse) ProtoMessage ¶ added in v0.4.1
func (*HomeResponse) ProtoMessage()
func (*HomeResponse) Reset ¶ added in v0.4.1
func (m *HomeResponse) Reset()
func (*HomeResponse) String ¶ added in v0.4.1
func (m *HomeResponse) String() string
func (*HomeResponse) XXX_DiscardUnknown ¶ added in v0.4.1
func (m *HomeResponse) XXX_DiscardUnknown()
func (*HomeResponse) XXX_Marshal ¶ added in v0.4.1
func (m *HomeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HomeResponse) XXX_Merge ¶ added in v0.4.1
func (dst *HomeResponse) XXX_Merge(src proto.Message)
func (*HomeResponse) XXX_Size ¶ added in v0.4.1
func (m *HomeResponse) XXX_Size() int
func (*HomeResponse) XXX_Unmarshal ¶ added in v0.4.1
func (m *HomeResponse) XXX_Unmarshal(b []byte) error
type InitDKGPacket ¶ added in v0.5.1
type InitDKGPacket 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"` // timeout as parsed by Golang's time.ParseDuration method. Timeout string `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InitDKGPacket) Descriptor ¶ added in v0.5.1
func (*InitDKGPacket) Descriptor() ([]byte, []int)
func (*InitDKGPacket) GetDkgGroup ¶ added in v0.5.1
func (m *InitDKGPacket) GetDkgGroup() *GroupInfo
func (*InitDKGPacket) GetIsLeader ¶ added in v0.5.1
func (m *InitDKGPacket) GetIsLeader() bool
func (*InitDKGPacket) GetTimeout ¶ added in v0.5.1
func (m *InitDKGPacket) GetTimeout() string
func (*InitDKGPacket) ProtoMessage ¶ added in v0.5.1
func (*InitDKGPacket) ProtoMessage()
func (*InitDKGPacket) Reset ¶ added in v0.5.1
func (m *InitDKGPacket) Reset()
func (*InitDKGPacket) String ¶ added in v0.5.1
func (m *InitDKGPacket) String() string
func (*InitDKGPacket) XXX_DiscardUnknown ¶ added in v0.5.1
func (m *InitDKGPacket) XXX_DiscardUnknown()
func (*InitDKGPacket) XXX_Marshal ¶ added in v0.5.1
func (m *InitDKGPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InitDKGPacket) XXX_Merge ¶ added in v0.5.1
func (dst *InitDKGPacket) XXX_Merge(src proto.Message)
func (*InitDKGPacket) XXX_Size ¶ added in v0.5.1
func (m *InitDKGPacket) XXX_Size() int
func (*InitDKGPacket) XXX_Unmarshal ¶ added in v0.5.1
func (m *InitDKGPacket) XXX_Unmarshal(b []byte) error
type InitResharePacket ¶ added in v0.5.1
type InitResharePacket 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. // timeout as parsed by Golang's time.ParseDuration method. }
ReshareRequest contains references to the old and new group to perform the resharing protocol.
func (*InitResharePacket) Descriptor ¶ added in v0.5.1
func (*InitResharePacket) Descriptor() ([]byte, []int)
func (*InitResharePacket) GetIsLeader ¶ added in v0.5.1
func (m *InitResharePacket) GetIsLeader() bool
func (*InitResharePacket) GetNew ¶ added in v0.5.1
func (m *InitResharePacket) GetNew() *GroupInfo
func (*InitResharePacket) GetOld ¶ added in v0.5.1
func (m *InitResharePacket) GetOld() *GroupInfo
func (*InitResharePacket) GetTimeout ¶ added in v0.5.1
func (m *InitResharePacket) GetTimeout() string
func (*InitResharePacket) ProtoMessage ¶ added in v0.5.1
func (*InitResharePacket) ProtoMessage()
func (*InitResharePacket) Reset ¶ added in v0.5.1
func (m *InitResharePacket) Reset()
func (*InitResharePacket) String ¶ added in v0.5.1
func (m *InitResharePacket) String() string
func (*InitResharePacket) XXX_DiscardUnknown ¶ added in v0.5.1
func (m *InitResharePacket) XXX_DiscardUnknown()
func (*InitResharePacket) XXX_Marshal ¶ added in v0.5.1
func (m *InitResharePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InitResharePacket) XXX_Merge ¶ added in v0.5.1
func (dst *InitResharePacket) XXX_Merge(src proto.Message)
func (*InitResharePacket) XXX_Size ¶ added in v0.5.1
func (m *InitResharePacket) XXX_Size() int
func (*InitResharePacket) XXX_Unmarshal ¶ added in v0.5.1
func (m *InitResharePacket) XXX_Unmarshal(b []byte) error
type Node ¶ added in v0.5.0
type Node struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` TLS bool `protobuf:"varint,3,opt,name=TLS,proto3" json:"TLS,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Node represents the information about a drand's node
func (*Node) Descriptor ¶ added in v0.5.0
func (*Node) GetAddress ¶ added in v0.5.0
func (*Node) ProtoMessage ¶ added in v0.5.0
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Marshal ¶ added in v0.5.0
func (*Node) XXX_Unmarshal ¶ added in v0.5.0
type Ping ¶ added in v0.5.0
type Ping struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ping) Descriptor ¶ added in v0.5.0
func (*Ping) ProtoMessage ¶ added in v0.5.0
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Marshal ¶ added in v0.5.0
func (*Ping) XXX_Unmarshal ¶ added in v0.5.0
type Pong ¶ added in v0.5.0
type Pong struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pong) Descriptor ¶ added in v0.5.0
func (*Pong) ProtoMessage ¶ added in v0.5.0
func (*Pong) ProtoMessage()
func (*Pong) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *Pong) XXX_DiscardUnknown()
func (*Pong) XXX_Marshal ¶ added in v0.5.0
func (*Pong) XXX_Unmarshal ¶ added in v0.5.0
type PrivateKeyRequest ¶ added in v0.5.0
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 ¶ added in v0.5.0
func (*PrivateKeyRequest) Descriptor() ([]byte, []int)
func (*PrivateKeyRequest) ProtoMessage ¶ added in v0.5.0
func (*PrivateKeyRequest) ProtoMessage()
func (*PrivateKeyRequest) Reset ¶ added in v0.5.0
func (m *PrivateKeyRequest) Reset()
func (*PrivateKeyRequest) String ¶ added in v0.5.0
func (m *PrivateKeyRequest) String() string
func (*PrivateKeyRequest) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *PrivateKeyRequest) XXX_DiscardUnknown()
func (*PrivateKeyRequest) XXX_Marshal ¶ added in v0.5.0
func (m *PrivateKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivateKeyRequest) XXX_Merge ¶ added in v0.5.0
func (dst *PrivateKeyRequest) XXX_Merge(src proto.Message)
func (*PrivateKeyRequest) XXX_Size ¶ added in v0.5.0
func (m *PrivateKeyRequest) XXX_Size() int
func (*PrivateKeyRequest) XXX_Unmarshal ¶ added in v0.5.0
func (m *PrivateKeyRequest) XXX_Unmarshal(b []byte) error
type PrivateKeyResponse ¶ added in v0.5.0
type PrivateKeyResponse struct { PriKey []byte `protobuf:"bytes,2,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 ¶ added in v0.5.0
func (*PrivateKeyResponse) Descriptor() ([]byte, []int)
func (*PrivateKeyResponse) GetPriKey ¶ added in v0.5.0
func (m *PrivateKeyResponse) GetPriKey() []byte
func (*PrivateKeyResponse) ProtoMessage ¶ added in v0.5.0
func (*PrivateKeyResponse) ProtoMessage()
func (*PrivateKeyResponse) Reset ¶ added in v0.5.0
func (m *PrivateKeyResponse) Reset()
func (*PrivateKeyResponse) String ¶ added in v0.5.0
func (m *PrivateKeyResponse) String() string
func (*PrivateKeyResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *PrivateKeyResponse) XXX_DiscardUnknown()
func (*PrivateKeyResponse) XXX_Marshal ¶ added in v0.5.0
func (m *PrivateKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivateKeyResponse) XXX_Merge ¶ added in v0.5.0
func (dst *PrivateKeyResponse) XXX_Merge(src proto.Message)
func (*PrivateKeyResponse) XXX_Size ¶ added in v0.5.0
func (m *PrivateKeyResponse) XXX_Size() int
func (*PrivateKeyResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *PrivateKeyResponse) XXX_Unmarshal(b []byte) error
type PrivateRandRequest ¶
type PrivateRandRequest struct { // Request must contains a public key towards which to encrypt the private // randomness. Request *ECIES `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PrivateRandRequest is the message to send when requesting a private random value.
func (*PrivateRandRequest) Descriptor ¶
func (*PrivateRandRequest) Descriptor() ([]byte, []int)
func (*PrivateRandRequest) GetRequest ¶
func (m *PrivateRandRequest) GetRequest() *ECIES
func (*PrivateRandRequest) ProtoMessage ¶
func (*PrivateRandRequest) ProtoMessage()
func (*PrivateRandRequest) Reset ¶
func (m *PrivateRandRequest) Reset()
func (*PrivateRandRequest) String ¶
func (m *PrivateRandRequest) String() string
func (*PrivateRandRequest) XXX_DiscardUnknown ¶ added in v0.3.7
func (m *PrivateRandRequest) XXX_DiscardUnknown()
func (*PrivateRandRequest) XXX_Marshal ¶ added in v0.3.7
func (m *PrivateRandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivateRandRequest) XXX_Merge ¶ added in v0.3.7
func (dst *PrivateRandRequest) XXX_Merge(src proto.Message)
func (*PrivateRandRequest) XXX_Size ¶ added in v0.3.7
func (m *PrivateRandRequest) XXX_Size() int
func (*PrivateRandRequest) XXX_Unmarshal ¶ added in v0.3.7
func (m *PrivateRandRequest) XXX_Unmarshal(b []byte) error
type PrivateRandResponse ¶
type PrivateRandResponse struct { // Response contains the private randomness encrypted towards the client's // request key. Response *ECIES `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PrivateRandResponse) Descriptor ¶
func (*PrivateRandResponse) Descriptor() ([]byte, []int)
func (*PrivateRandResponse) GetResponse ¶
func (m *PrivateRandResponse) GetResponse() *ECIES
func (*PrivateRandResponse) ProtoMessage ¶
func (*PrivateRandResponse) ProtoMessage()
func (*PrivateRandResponse) Reset ¶
func (m *PrivateRandResponse) Reset()
func (*PrivateRandResponse) String ¶
func (m *PrivateRandResponse) String() string
func (*PrivateRandResponse) XXX_DiscardUnknown ¶ added in v0.3.7
func (m *PrivateRandResponse) XXX_DiscardUnknown()
func (*PrivateRandResponse) XXX_Marshal ¶ added in v0.3.7
func (m *PrivateRandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivateRandResponse) XXX_Merge ¶ added in v0.3.7
func (dst *PrivateRandResponse) XXX_Merge(src proto.Message)
func (*PrivateRandResponse) XXX_Size ¶ added in v0.3.7
func (m *PrivateRandResponse) XXX_Size() int
func (*PrivateRandResponse) XXX_Unmarshal ¶ added in v0.3.7
func (m *PrivateRandResponse) XXX_Unmarshal(b []byte) error
type ProtocolClient ¶ added in v0.5.1
type ProtocolClient interface { // Setup is doing the DKG setup phase Setup(ctx context.Context, in *SetupPacket, opts ...grpc.CallOption) (*Empty, error) Reshare(ctx context.Context, in *ResharePacket, opts ...grpc.CallOption) (*Empty, error) // NewBeacon asks for a partial signature to another node NewBeacon(ctx context.Context, in *BeaconRequest, opts ...grpc.CallOption) (*BeaconResponse, error) }
ProtocolClient is the client API for Protocol service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProtocolClient ¶ added in v0.5.1
func NewProtocolClient(cc *grpc.ClientConn) ProtocolClient
type ProtocolServer ¶ added in v0.5.1
type ProtocolServer interface { // Setup is doing the DKG setup phase Setup(context.Context, *SetupPacket) (*Empty, error) Reshare(context.Context, *ResharePacket) (*Empty, error) // NewBeacon asks for a partial signature to another node NewBeacon(context.Context, *BeaconRequest) (*BeaconResponse, error) }
ProtocolServer is the server API for Protocol service.
type PublicClient ¶ added in v0.5.1
type PublicClient interface { // PublicRand is the method that returns the publicly verifiable randomness // generated by the drand network. PublicRand(ctx context.Context, in *PublicRandRequest, opts ...grpc.CallOption) (*PublicRandResponse, error) // PrivateRand is the method that returns the private randomness generated // by the drand node only. PrivateRand(ctx context.Context, in *PrivateRandRequest, opts ...grpc.CallOption) (*PrivateRandResponse, error) // Group is the method that returns the group descrition that the drand // endpoint belongs to Group(ctx context.Context, in *GroupRequest, opts ...grpc.CallOption) (*GroupResponse, error) // DistKey returns the distributed key from which drand node endpoint get a share DistKey(ctx context.Context, in *DistKeyRequest, opts ...grpc.CallOption) (*DistKeyResponse, error) // Home is a simple endpoint Home(ctx context.Context, in *HomeRequest, opts ...grpc.CallOption) (*HomeResponse, error) }
PublicClient is the client API for Public service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPublicClient ¶ added in v0.5.1
func NewPublicClient(cc *grpc.ClientConn) PublicClient
type PublicKeyRequest ¶ added in v0.5.0
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 ¶ added in v0.5.0
func (*PublicKeyRequest) Descriptor() ([]byte, []int)
func (*PublicKeyRequest) ProtoMessage ¶ added in v0.5.0
func (*PublicKeyRequest) ProtoMessage()
func (*PublicKeyRequest) Reset ¶ added in v0.5.0
func (m *PublicKeyRequest) Reset()
func (*PublicKeyRequest) String ¶ added in v0.5.0
func (m *PublicKeyRequest) String() string
func (*PublicKeyRequest) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *PublicKeyRequest) XXX_DiscardUnknown()
func (*PublicKeyRequest) XXX_Marshal ¶ added in v0.5.0
func (m *PublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicKeyRequest) XXX_Merge ¶ added in v0.5.0
func (dst *PublicKeyRequest) XXX_Merge(src proto.Message)
func (*PublicKeyRequest) XXX_Size ¶ added in v0.5.0
func (m *PublicKeyRequest) XXX_Size() int
func (*PublicKeyRequest) XXX_Unmarshal ¶ added in v0.5.0
func (m *PublicKeyRequest) XXX_Unmarshal(b []byte) error
type PublicKeyResponse ¶ added in v0.5.0
type PublicKeyResponse struct { PubKey []byte `protobuf:"bytes,2,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 ¶ added in v0.5.0
func (*PublicKeyResponse) Descriptor() ([]byte, []int)
func (*PublicKeyResponse) GetPubKey ¶ added in v0.5.0
func (m *PublicKeyResponse) GetPubKey() []byte
func (*PublicKeyResponse) ProtoMessage ¶ added in v0.5.0
func (*PublicKeyResponse) ProtoMessage()
func (*PublicKeyResponse) Reset ¶ added in v0.5.0
func (m *PublicKeyResponse) Reset()
func (*PublicKeyResponse) String ¶ added in v0.5.0
func (m *PublicKeyResponse) String() string
func (*PublicKeyResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *PublicKeyResponse) XXX_DiscardUnknown()
func (*PublicKeyResponse) XXX_Marshal ¶ added in v0.5.0
func (m *PublicKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicKeyResponse) XXX_Merge ¶ added in v0.5.0
func (dst *PublicKeyResponse) XXX_Merge(src proto.Message)
func (*PublicKeyResponse) XXX_Size ¶ added in v0.5.0
func (m *PublicKeyResponse) XXX_Size() int
func (*PublicKeyResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *PublicKeyResponse) XXX_Unmarshal(b []byte) error
type PublicRandRequest ¶
type PublicRandRequest struct { // round uniquely identifies a beacon. If round == 0 (or unspecified), then // the response will contain the last. Round uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PublicRandRequest requests a public random value that has been generated in a unbiasable way and verifiable.
func (*PublicRandRequest) Descriptor ¶
func (*PublicRandRequest) Descriptor() ([]byte, []int)
func (*PublicRandRequest) GetRound ¶
func (m *PublicRandRequest) GetRound() uint64
func (*PublicRandRequest) ProtoMessage ¶
func (*PublicRandRequest) ProtoMessage()
func (*PublicRandRequest) Reset ¶
func (m *PublicRandRequest) Reset()
func (*PublicRandRequest) String ¶
func (m *PublicRandRequest) String() string
func (*PublicRandRequest) XXX_DiscardUnknown ¶ added in v0.3.7
func (m *PublicRandRequest) XXX_DiscardUnknown()
func (*PublicRandRequest) XXX_Marshal ¶ added in v0.3.7
func (m *PublicRandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicRandRequest) XXX_Merge ¶ added in v0.3.7
func (dst *PublicRandRequest) XXX_Merge(src proto.Message)
func (*PublicRandRequest) XXX_Size ¶ added in v0.3.7
func (m *PublicRandRequest) XXX_Size() int
func (*PublicRandRequest) XXX_Unmarshal ¶ added in v0.3.7
func (m *PublicRandRequest) XXX_Unmarshal(b []byte) error
type PublicRandResponse ¶
type PublicRandResponse struct { Round uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"` Previous []byte `protobuf:"bytes,2,opt,name=previous,proto3" json:"previous,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` Randomness []byte `protobuf:"bytes,4,opt,name=randomness,proto3" json:"randomness,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PublicRandResponse holds a signature which is the random value. It can be verified thanks to the distributed public key of the nodes that have ran the DKG protocol and is unbiasable. The randomness can be verified using the BLS verification routine with the message "round || previous_rand".
func (*PublicRandResponse) Descriptor ¶
func (*PublicRandResponse) Descriptor() ([]byte, []int)
func (*PublicRandResponse) GetPrevious ¶ added in v0.3.7
func (m *PublicRandResponse) GetPrevious() []byte
func (*PublicRandResponse) GetRandomness ¶
func (m *PublicRandResponse) GetRandomness() []byte
func (*PublicRandResponse) GetRound ¶
func (m *PublicRandResponse) GetRound() uint64
func (*PublicRandResponse) GetSignature ¶ added in v0.5.1
func (m *PublicRandResponse) GetSignature() []byte
func (*PublicRandResponse) ProtoMessage ¶
func (*PublicRandResponse) ProtoMessage()
func (*PublicRandResponse) Reset ¶
func (m *PublicRandResponse) Reset()
func (*PublicRandResponse) String ¶
func (m *PublicRandResponse) String() string
func (*PublicRandResponse) XXX_DiscardUnknown ¶ added in v0.3.7
func (m *PublicRandResponse) XXX_DiscardUnknown()
func (*PublicRandResponse) XXX_Marshal ¶ added in v0.3.7
func (m *PublicRandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicRandResponse) XXX_Merge ¶ added in v0.3.7
func (dst *PublicRandResponse) XXX_Merge(src proto.Message)
func (*PublicRandResponse) XXX_Size ¶ added in v0.3.7
func (m *PublicRandResponse) XXX_Size() int
func (*PublicRandResponse) XXX_Unmarshal ¶ added in v0.3.7
func (m *PublicRandResponse) XXX_Unmarshal(b []byte) error
type PublicServer ¶ added in v0.5.1
type PublicServer interface { // PublicRand is the method that returns the publicly verifiable randomness // generated by the drand network. PublicRand(context.Context, *PublicRandRequest) (*PublicRandResponse, error) // PrivateRand is the method that returns the private randomness generated // by the drand node only. PrivateRand(context.Context, *PrivateRandRequest) (*PrivateRandResponse, error) // Group is the method that returns the group descrition that the drand // endpoint belongs to Group(context.Context, *GroupRequest) (*GroupResponse, error) // DistKey returns the distributed key from which drand node endpoint get a share DistKey(context.Context, *DistKeyRequest) (*DistKeyResponse, error) // Home is a simple endpoint Home(context.Context, *HomeRequest) (*HomeResponse, error) }
PublicServer is the server API for Public service.
type ResharePacket ¶ added in v0.5.1
type ResharePacket struct {}
Reshare is a wrapper around a Setup packet for resharing operation that serves two purposes: - indicate to non-leader old nodes that they should generate and send their deals - indicate to which new group are we resharing. drand should keep a list of new ready-to-operate groups allowed.
func (*ResharePacket) Descriptor ¶ added in v0.5.1
func (*ResharePacket) Descriptor() ([]byte, []int)
func (*ResharePacket) GetDkg ¶ added in v0.5.1
func (m *ResharePacket) GetDkg() *dkg.Packet
func (*ResharePacket) GetGroupHash ¶ added in v0.5.1
func (m *ResharePacket) GetGroupHash() string
func (*ResharePacket) ProtoMessage ¶ added in v0.5.1
func (*ResharePacket) ProtoMessage()
func (*ResharePacket) Reset ¶ added in v0.5.1
func (m *ResharePacket) Reset()
func (*ResharePacket) String ¶ added in v0.5.1
func (m *ResharePacket) String() string
func (*ResharePacket) XXX_DiscardUnknown ¶ added in v0.5.1
func (m *ResharePacket) XXX_DiscardUnknown()
func (*ResharePacket) XXX_Marshal ¶ added in v0.5.1
func (m *ResharePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResharePacket) XXX_Merge ¶ added in v0.5.1
func (dst *ResharePacket) XXX_Merge(src proto.Message)
func (*ResharePacket) XXX_Size ¶ added in v0.5.1
func (m *ResharePacket) XXX_Size() int
func (*ResharePacket) XXX_Unmarshal ¶ added in v0.5.1
func (m *ResharePacket) XXX_Unmarshal(b []byte) error
type SetupPacket ¶ added in v0.5.1
type SetupPacket struct { Dkg *dkg.Packet `protobuf:"bytes,1,opt,name=dkg,proto3" json:"dkg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetupPacket) Descriptor ¶ added in v0.5.1
func (*SetupPacket) Descriptor() ([]byte, []int)
func (*SetupPacket) GetDkg ¶ added in v0.5.1
func (m *SetupPacket) GetDkg() *dkg.Packet
func (*SetupPacket) ProtoMessage ¶ added in v0.5.1
func (*SetupPacket) ProtoMessage()
func (*SetupPacket) Reset ¶ added in v0.5.1
func (m *SetupPacket) Reset()
func (*SetupPacket) String ¶ added in v0.5.1
func (m *SetupPacket) String() string
func (*SetupPacket) XXX_DiscardUnknown ¶ added in v0.5.1
func (m *SetupPacket) XXX_DiscardUnknown()
func (*SetupPacket) XXX_Marshal ¶ added in v0.5.1
func (m *SetupPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetupPacket) XXX_Merge ¶ added in v0.5.1
func (dst *SetupPacket) XXX_Merge(src proto.Message)
func (*SetupPacket) XXX_Size ¶ added in v0.5.1
func (m *SetupPacket) XXX_Size() int
func (*SetupPacket) XXX_Unmarshal ¶ added in v0.5.1
func (m *SetupPacket) XXX_Unmarshal(b []byte) error
type ShareRequest ¶ added in v0.5.0
type ShareRequest struct {}
ShareRequest requests the private share of a drand node
func (*ShareRequest) Descriptor ¶ added in v0.5.0
func (*ShareRequest) Descriptor() ([]byte, []int)
func (*ShareRequest) ProtoMessage ¶ added in v0.5.0
func (*ShareRequest) ProtoMessage()
func (*ShareRequest) Reset ¶ added in v0.5.0
func (m *ShareRequest) Reset()
func (*ShareRequest) String ¶ added in v0.5.0
func (m *ShareRequest) String() string
func (*ShareRequest) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *ShareRequest) XXX_DiscardUnknown()
func (*ShareRequest) XXX_Marshal ¶ added in v0.5.0
func (m *ShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShareRequest) XXX_Merge ¶ added in v0.5.0
func (dst *ShareRequest) XXX_Merge(src proto.Message)
func (*ShareRequest) XXX_Size ¶ added in v0.5.0
func (m *ShareRequest) XXX_Size() int
func (*ShareRequest) XXX_Unmarshal ¶ added in v0.5.0
func (m *ShareRequest) XXX_Unmarshal(b []byte) error
type ShareResponse ¶ added in v0.5.0
type ShareResponse struct {}
ShareResponse holds the private share of a drand node
func (*ShareResponse) Descriptor ¶ added in v0.5.0
func (*ShareResponse) Descriptor() ([]byte, []int)
func (*ShareResponse) GetIndex ¶ added in v0.5.0
func (m *ShareResponse) GetIndex() uint32
func (*ShareResponse) GetShare ¶ added in v0.5.0
func (m *ShareResponse) GetShare() []byte
func (*ShareResponse) ProtoMessage ¶ added in v0.5.0
func (*ShareResponse) ProtoMessage()
func (*ShareResponse) Reset ¶ added in v0.5.0
func (m *ShareResponse) Reset()
func (*ShareResponse) String ¶ added in v0.5.0
func (m *ShareResponse) String() string
func (*ShareResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *ShareResponse) XXX_DiscardUnknown()
func (*ShareResponse) XXX_Marshal ¶ added in v0.5.0
func (m *ShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShareResponse) XXX_Merge ¶ added in v0.5.0
func (dst *ShareResponse) XXX_Merge(src proto.Message)
func (*ShareResponse) XXX_Size ¶ added in v0.5.0
func (m *ShareResponse) XXX_Size() int
func (*ShareResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *ShareResponse) XXX_Unmarshal(b []byte) error