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 RegisterPublicHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicServer) error
- func RegisterPublicServer(s *grpc.Server, srv PublicServer)
- type BeaconPacket
- func (*BeaconPacket) Descriptor() ([]byte, []int)
- func (m *BeaconPacket) GetPartialSig() []byte
- func (m *BeaconPacket) GetPreviousRound() uint64
- func (m *BeaconPacket) GetPreviousSig() []byte
- func (m *BeaconPacket) GetRound() uint64
- func (*BeaconPacket) ProtoMessage()
- func (m *BeaconPacket) Reset()
- func (m *BeaconPacket) String() string
- func (m *BeaconPacket) XXX_DiscardUnknown()
- func (m *BeaconPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BeaconPacket) XXX_Merge(src proto.Message)
- func (m *BeaconPacket) XXX_Size() int
- func (m *BeaconPacket) 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 (m *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 (m *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 (m *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 (m *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 (m *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 (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type EntropyInfo
- func (*EntropyInfo) Descriptor() ([]byte, []int)
- func (m *EntropyInfo) GetScript() string
- func (m *EntropyInfo) GetUserOnly() bool
- func (*EntropyInfo) ProtoMessage()
- func (m *EntropyInfo) Reset()
- func (m *EntropyInfo) String() string
- func (m *EntropyInfo) XXX_DiscardUnknown()
- func (m *EntropyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EntropyInfo) XXX_Merge(src proto.Message)
- func (m *EntropyInfo) XXX_Size() int
- func (m *EntropyInfo) 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 (m *GroupInfo) XXX_Merge(src proto.Message)
- func (*GroupInfo) XXX_OneofWrappers() []interface{}
- 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 (m *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 (m *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 (m *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 (m *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 (m *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 (m *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) GetEntropy() *EntropyInfo
- 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 (m *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 (m *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 (m *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 (m *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 (m *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 (m *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 (m *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 (m *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 (m *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 Protocol_SyncChainClient
- type Protocol_SyncChainServer
- 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 (m *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 (m *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 (m *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) GetPreviousRound() uint64
- func (m *PublicRandResponse) GetPreviousSignature() []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 (m *PublicRandResponse) XXX_Merge(src proto.Message)
- func (m *PublicRandResponse) XXX_Size() int
- func (m *PublicRandResponse) XXX_Unmarshal(b []byte) error
- type PublicServer
- type Public_PublicRandStreamClient
- type Public_PublicRandStreamServer
- 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 (m *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 (m *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 (m *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 (m *ShareResponse) XXX_Merge(src proto.Message)
- func (m *ShareResponse) XXX_Size() int
- func (m *ShareResponse) XXX_Unmarshal(b []byte) error
- type ShutdownRequest
- func (*ShutdownRequest) Descriptor() ([]byte, []int)
- func (*ShutdownRequest) ProtoMessage()
- func (m *ShutdownRequest) Reset()
- func (m *ShutdownRequest) String() string
- func (m *ShutdownRequest) XXX_DiscardUnknown()
- func (m *ShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShutdownRequest) XXX_Merge(src proto.Message)
- func (m *ShutdownRequest) XXX_Size() int
- func (m *ShutdownRequest) XXX_Unmarshal(b []byte) error
- type ShutdownResponse
- func (*ShutdownResponse) Descriptor() ([]byte, []int)
- func (*ShutdownResponse) ProtoMessage()
- func (m *ShutdownResponse) Reset()
- func (m *ShutdownResponse) String() string
- func (m *ShutdownResponse) XXX_DiscardUnknown()
- func (m *ShutdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShutdownResponse) XXX_Merge(src proto.Message)
- func (m *ShutdownResponse) XXX_Size() int
- func (m *ShutdownResponse) XXX_Unmarshal(b []byte) error
- type SyncRequest
- func (*SyncRequest) Descriptor() ([]byte, []int)
- func (m *SyncRequest) GetFromRound() uint64
- func (*SyncRequest) ProtoMessage()
- func (m *SyncRequest) Reset()
- func (m *SyncRequest) String() string
- func (m *SyncRequest) XXX_DiscardUnknown()
- func (m *SyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncRequest) XXX_Merge(src proto.Message)
- func (m *SyncRequest) XXX_Size() int
- func (m *SyncRequest) XXX_Unmarshal(b []byte) error
- type SyncResponse
- func (*SyncResponse) Descriptor() ([]byte, []int)
- func (m *SyncResponse) GetPreviousRound() uint64
- func (m *SyncResponse) GetPreviousSig() []byte
- func (m *SyncResponse) GetRound() uint64
- func (m *SyncResponse) GetSignature() []byte
- func (*SyncResponse) ProtoMessage()
- func (m *SyncResponse) Reset()
- func (m *SyncResponse) String() string
- func (m *SyncResponse) XXX_DiscardUnknown()
- func (m *SyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncResponse) XXX_Merge(src proto.Message)
- func (m *SyncResponse) XXX_Size() int
- func (m *SyncResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedControlServer
- func (*UnimplementedControlServer) CollectiveKey(ctx context.Context, req *CokeyRequest) (*CokeyResponse, error)
- func (*UnimplementedControlServer) GroupFile(ctx context.Context, req *GroupTOMLRequest) (*GroupTOMLResponse, error)
- func (*UnimplementedControlServer) InitDKG(ctx context.Context, req *InitDKGPacket) (*Empty, error)
- func (*UnimplementedControlServer) InitReshare(ctx context.Context, req *InitResharePacket) (*Empty, error)
- func (*UnimplementedControlServer) PingPong(ctx context.Context, req *Ping) (*Pong, error)
- func (*UnimplementedControlServer) PrivateKey(ctx context.Context, req *PrivateKeyRequest) (*PrivateKeyResponse, error)
- func (*UnimplementedControlServer) PublicKey(ctx context.Context, req *PublicKeyRequest) (*PublicKeyResponse, error)
- func (*UnimplementedControlServer) Share(ctx context.Context, req *ShareRequest) (*ShareResponse, error)
- func (*UnimplementedControlServer) Shutdown(ctx context.Context, req *ShutdownRequest) (*ShutdownResponse, error)
- type UnimplementedProtocolServer
- func (*UnimplementedProtocolServer) NewBeacon(ctx context.Context, req *BeaconPacket) (*Empty, error)
- func (*UnimplementedProtocolServer) Reshare(ctx context.Context, req *ResharePacket) (*Empty, error)
- func (*UnimplementedProtocolServer) Setup(ctx context.Context, req *SetupPacket) (*Empty, error)
- func (*UnimplementedProtocolServer) SyncChain(req *SyncRequest, srv Protocol_SyncChainServer) error
- type UnimplementedPublicServer
- func (*UnimplementedPublicServer) DistKey(ctx context.Context, req *DistKeyRequest) (*DistKeyResponse, error)
- func (*UnimplementedPublicServer) Group(ctx context.Context, req *GroupRequest) (*GroupResponse, error)
- func (*UnimplementedPublicServer) Home(ctx context.Context, req *HomeRequest) (*HomeResponse, error)
- func (*UnimplementedPublicServer) PrivateRand(ctx context.Context, req *PrivateRandRequest) (*PrivateRandResponse, error)
- func (*UnimplementedPublicServer) PublicRand(ctx context.Context, req *PublicRandRequest) (*PublicRandResponse, error)
- func (*UnimplementedPublicServer) PublicRandStream(req *PublicRandRequest, srv Public_PublicRandStreamServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterControlServer ¶ added in v0.5.2
func RegisterControlServer(s *grpc.Server, srv ControlServer)
func RegisterProtocolServer ¶ added in v0.5.2
func RegisterProtocolServer(s *grpc.Server, srv ProtocolServer)
func RegisterPublicHandler ¶ added in v0.5.2
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.2
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.2
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 RegisterPublicHandlerServer ¶ added in v0.6.1
func RegisterPublicHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicServer) error
RegisterPublicHandlerServer registers the http handlers for service Public to "mux". UnaryRPC :call PublicServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterPublicServer ¶ added in v0.5.2
func RegisterPublicServer(s *grpc.Server, srv PublicServer)
Types ¶
type BeaconPacket ¶ added in v0.6.1
type BeaconPacket struct { // Round is the round for which the beacon will be created from the partial // signatures Round uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"` // PreviousRound is the round for which the beacon is building on top of // from. PreviousRound uint64 `protobuf:"varint,2,opt,name=previous_round,json=previousRound,proto3" json:"previous_round,omitempty"` PartialSig []byte `protobuf:"bytes,3,opt,name=partial_sig,json=partialSig,proto3" json:"partial_sig,omitempty"` PreviousSig []byte `protobuf:"bytes,4,opt,name=previous_sig,json=previousSig,proto3" json:"previous_sig,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BeaconPacket) Descriptor ¶ added in v0.6.1
func (*BeaconPacket) Descriptor() ([]byte, []int)
func (*BeaconPacket) GetPartialSig ¶ added in v0.6.1
func (m *BeaconPacket) GetPartialSig() []byte
func (*BeaconPacket) GetPreviousRound ¶ added in v0.6.1
func (m *BeaconPacket) GetPreviousRound() uint64
func (*BeaconPacket) GetPreviousSig ¶ added in v0.6.1
func (m *BeaconPacket) GetPreviousSig() []byte
func (*BeaconPacket) GetRound ¶ added in v0.6.1
func (m *BeaconPacket) GetRound() uint64
func (*BeaconPacket) ProtoMessage ¶ added in v0.6.1
func (*BeaconPacket) ProtoMessage()
func (*BeaconPacket) Reset ¶ added in v0.6.1
func (m *BeaconPacket) Reset()
func (*BeaconPacket) String ¶ added in v0.6.1
func (m *BeaconPacket) String() string
func (*BeaconPacket) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *BeaconPacket) XXX_DiscardUnknown()
func (*BeaconPacket) XXX_Marshal ¶ added in v0.6.1
func (m *BeaconPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BeaconPacket) XXX_Merge ¶ added in v0.6.1
func (m *BeaconPacket) XXX_Merge(src proto.Message)
func (*BeaconPacket) XXX_Size ¶ added in v0.6.1
func (m *BeaconPacket) XXX_Size() int
func (*BeaconPacket) XXX_Unmarshal ¶ added in v0.6.1
func (m *BeaconPacket) XXX_Unmarshal(b []byte) error
type CokeyRequest ¶ added in v0.5.2
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.2
func (*CokeyRequest) Descriptor() ([]byte, []int)
func (*CokeyRequest) ProtoMessage ¶ added in v0.5.2
func (*CokeyRequest) ProtoMessage()
func (*CokeyRequest) Reset ¶ added in v0.5.2
func (m *CokeyRequest) Reset()
func (*CokeyRequest) String ¶ added in v0.5.2
func (m *CokeyRequest) String() string
func (*CokeyRequest) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *CokeyRequest) XXX_DiscardUnknown()
func (*CokeyRequest) XXX_Marshal ¶ added in v0.5.2
func (m *CokeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CokeyRequest) XXX_Merge ¶ added in v0.5.2
func (m *CokeyRequest) XXX_Merge(src proto.Message)
func (*CokeyRequest) XXX_Size ¶ added in v0.5.2
func (m *CokeyRequest) XXX_Size() int
func (*CokeyRequest) XXX_Unmarshal ¶ added in v0.5.2
func (m *CokeyRequest) XXX_Unmarshal(b []byte) error
type CokeyResponse ¶ added in v0.5.2
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.2
func (*CokeyResponse) Descriptor() ([]byte, []int)
func (*CokeyResponse) GetCoKey ¶ added in v0.5.2
func (m *CokeyResponse) GetCoKey() []byte
func (*CokeyResponse) ProtoMessage ¶ added in v0.5.2
func (*CokeyResponse) ProtoMessage()
func (*CokeyResponse) Reset ¶ added in v0.5.2
func (m *CokeyResponse) Reset()
func (*CokeyResponse) String ¶ added in v0.5.2
func (m *CokeyResponse) String() string
func (*CokeyResponse) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *CokeyResponse) XXX_DiscardUnknown()
func (*CokeyResponse) XXX_Marshal ¶ added in v0.5.2
func (m *CokeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CokeyResponse) XXX_Merge ¶ added in v0.5.2
func (m *CokeyResponse) XXX_Merge(src proto.Message)
func (*CokeyResponse) XXX_Size ¶ added in v0.5.2
func (m *CokeyResponse) XXX_Size() int
func (*CokeyResponse) XXX_Unmarshal ¶ added in v0.5.2
func (m *CokeyResponse) XXX_Unmarshal(b []byte) error
type ControlClient ¶ added in v0.5.2
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) Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, 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.2
func NewControlClient(cc grpc.ClientConnInterface) ControlClient
type ControlServer ¶ added in v0.5.2
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) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, 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 (m *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 (m *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.2
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.2
func (*ECIES) GetCiphertext ¶ added in v0.5.2
func (*ECIES) GetEphemeral ¶ added in v0.5.2
func (*ECIES) ProtoMessage ¶ added in v0.5.2
func (*ECIES) ProtoMessage()
func (*ECIES) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *ECIES) XXX_DiscardUnknown()
func (*ECIES) XXX_Marshal ¶ added in v0.5.2
func (*ECIES) XXX_Unmarshal ¶ added in v0.5.2
type Empty ¶ added in v0.5.2
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶ added in v0.5.2
func (*Empty) ProtoMessage ¶ added in v0.5.2
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶ added in v0.5.2
func (*Empty) XXX_Unmarshal ¶ added in v0.5.2
type EntropyInfo ¶ added in v0.5.4
type EntropyInfo struct { Script string `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` // do we only take this entropy source or mix it with /dev/urandom UserOnly bool `protobuf:"varint,10,opt,name=userOnly,proto3" json:"userOnly,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
EntropyInfo contains information about external entropy sources can be optional
func (*EntropyInfo) Descriptor ¶ added in v0.5.4
func (*EntropyInfo) Descriptor() ([]byte, []int)
func (*EntropyInfo) GetScript ¶ added in v0.5.4
func (m *EntropyInfo) GetScript() string
func (*EntropyInfo) GetUserOnly ¶ added in v0.5.4
func (m *EntropyInfo) GetUserOnly() bool
func (*EntropyInfo) ProtoMessage ¶ added in v0.5.4
func (*EntropyInfo) ProtoMessage()
func (*EntropyInfo) Reset ¶ added in v0.5.4
func (m *EntropyInfo) Reset()
func (*EntropyInfo) String ¶ added in v0.5.4
func (m *EntropyInfo) String() string
func (*EntropyInfo) XXX_DiscardUnknown ¶ added in v0.5.4
func (m *EntropyInfo) XXX_DiscardUnknown()
func (*EntropyInfo) XXX_Marshal ¶ added in v0.5.4
func (m *EntropyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EntropyInfo) XXX_Merge ¶ added in v0.5.4
func (m *EntropyInfo) XXX_Merge(src proto.Message)
func (*EntropyInfo) XXX_Size ¶ added in v0.5.4
func (m *EntropyInfo) XXX_Size() int
func (*EntropyInfo) XXX_Unmarshal ¶ added in v0.5.4
func (m *EntropyInfo) XXX_Unmarshal(b []byte) error
type GroupInfo ¶ added in v0.5.2
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.2
func (*GroupInfo) GetLocation ¶ added in v0.5.2
func (m *GroupInfo) GetLocation() isGroupInfo_Location
func (*GroupInfo) ProtoMessage ¶ added in v0.5.2
func (*GroupInfo) ProtoMessage()
func (*GroupInfo) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *GroupInfo) XXX_DiscardUnknown()
func (*GroupInfo) XXX_Marshal ¶ added in v0.5.2
func (*GroupInfo) XXX_OneofWrappers ¶ added in v0.6.1
func (*GroupInfo) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*GroupInfo) XXX_Unmarshal ¶ added in v0.5.2
type GroupInfo_Path ¶ added in v0.5.2
type GroupInfo_Path struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}
type GroupInfo_Url ¶ added in v0.5.2
type GroupInfo_Url struct {
Url string `protobuf:"bytes,2,opt,name=url,proto3,oneof"`
}
type GroupRequest ¶ added in v0.5.2
type GroupRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GroupRequest) Descriptor ¶ added in v0.5.2
func (*GroupRequest) Descriptor() ([]byte, []int)
func (*GroupRequest) ProtoMessage ¶ added in v0.5.2
func (*GroupRequest) ProtoMessage()
func (*GroupRequest) Reset ¶ added in v0.5.2
func (m *GroupRequest) Reset()
func (*GroupRequest) String ¶ added in v0.5.2
func (m *GroupRequest) String() string
func (*GroupRequest) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *GroupRequest) XXX_DiscardUnknown()
func (*GroupRequest) XXX_Marshal ¶ added in v0.5.2
func (m *GroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupRequest) XXX_Merge ¶ added in v0.5.2
func (m *GroupRequest) XXX_Merge(src proto.Message)
func (*GroupRequest) XXX_Size ¶ added in v0.5.2
func (m *GroupRequest) XXX_Size() int
func (*GroupRequest) XXX_Unmarshal ¶ added in v0.5.2
func (m *GroupRequest) XXX_Unmarshal(b []byte) error
type GroupResponse ¶ added in v0.5.2
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.2
func (*GroupResponse) Descriptor() ([]byte, []int)
func (*GroupResponse) GetDistkey ¶ added in v0.5.2
func (m *GroupResponse) GetDistkey() []string
func (*GroupResponse) GetNodes ¶ added in v0.5.2
func (m *GroupResponse) GetNodes() []*Node
func (*GroupResponse) GetPeriod ¶ added in v0.5.2
func (m *GroupResponse) GetPeriod() uint32
func (*GroupResponse) GetThreshold ¶ added in v0.5.2
func (m *GroupResponse) GetThreshold() uint32
func (*GroupResponse) ProtoMessage ¶ added in v0.5.2
func (*GroupResponse) ProtoMessage()
func (*GroupResponse) Reset ¶ added in v0.5.2
func (m *GroupResponse) Reset()
func (*GroupResponse) String ¶ added in v0.5.2
func (m *GroupResponse) String() string
func (*GroupResponse) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *GroupResponse) XXX_DiscardUnknown()
func (*GroupResponse) XXX_Marshal ¶ added in v0.5.2
func (m *GroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupResponse) XXX_Merge ¶ added in v0.5.2
func (m *GroupResponse) XXX_Merge(src proto.Message)
func (*GroupResponse) XXX_Size ¶ added in v0.5.2
func (m *GroupResponse) XXX_Size() int
func (*GroupResponse) XXX_Unmarshal ¶ added in v0.5.2
func (m *GroupResponse) XXX_Unmarshal(b []byte) error
type GroupTOMLRequest ¶ added in v0.5.2
type GroupTOMLRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GroupTOMLRequest) Descriptor ¶ added in v0.5.2
func (*GroupTOMLRequest) Descriptor() ([]byte, []int)
func (*GroupTOMLRequest) ProtoMessage ¶ added in v0.5.2
func (*GroupTOMLRequest) ProtoMessage()
func (*GroupTOMLRequest) Reset ¶ added in v0.5.2
func (m *GroupTOMLRequest) Reset()
func (*GroupTOMLRequest) String ¶ added in v0.5.2
func (m *GroupTOMLRequest) String() string
func (*GroupTOMLRequest) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *GroupTOMLRequest) XXX_DiscardUnknown()
func (*GroupTOMLRequest) XXX_Marshal ¶ added in v0.5.2
func (m *GroupTOMLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupTOMLRequest) XXX_Merge ¶ added in v0.5.2
func (m *GroupTOMLRequest) XXX_Merge(src proto.Message)
func (*GroupTOMLRequest) XXX_Size ¶ added in v0.5.2
func (m *GroupTOMLRequest) XXX_Size() int
func (*GroupTOMLRequest) XXX_Unmarshal ¶ added in v0.5.2
func (m *GroupTOMLRequest) XXX_Unmarshal(b []byte) error
type GroupTOMLResponse ¶ added in v0.5.2
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.2
func (*GroupTOMLResponse) Descriptor() ([]byte, []int)
func (*GroupTOMLResponse) GetGroupToml ¶ added in v0.5.2
func (m *GroupTOMLResponse) GetGroupToml() string
func (*GroupTOMLResponse) ProtoMessage ¶ added in v0.5.2
func (*GroupTOMLResponse) ProtoMessage()
func (*GroupTOMLResponse) Reset ¶ added in v0.5.2
func (m *GroupTOMLResponse) Reset()
func (*GroupTOMLResponse) String ¶ added in v0.5.2
func (m *GroupTOMLResponse) String() string
func (*GroupTOMLResponse) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *GroupTOMLResponse) XXX_DiscardUnknown()
func (*GroupTOMLResponse) XXX_Marshal ¶ added in v0.5.2
func (m *GroupTOMLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupTOMLResponse) XXX_Merge ¶ added in v0.5.2
func (m *GroupTOMLResponse) XXX_Merge(src proto.Message)
func (*GroupTOMLResponse) XXX_Size ¶ added in v0.5.2
func (m *GroupTOMLResponse) XXX_Size() int
func (*GroupTOMLResponse) XXX_Unmarshal ¶ added in v0.5.2
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 (m *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 (m *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.2
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"` Entropy *EntropyInfo `protobuf:"bytes,4,opt,name=entropy,proto3" json:"entropy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InitDKGPacket) Descriptor ¶ added in v0.5.2
func (*InitDKGPacket) Descriptor() ([]byte, []int)
func (*InitDKGPacket) GetDkgGroup ¶ added in v0.5.2
func (m *InitDKGPacket) GetDkgGroup() *GroupInfo
func (*InitDKGPacket) GetEntropy ¶ added in v0.5.4
func (m *InitDKGPacket) GetEntropy() *EntropyInfo
func (*InitDKGPacket) GetIsLeader ¶ added in v0.5.2
func (m *InitDKGPacket) GetIsLeader() bool
func (*InitDKGPacket) GetTimeout ¶ added in v0.5.2
func (m *InitDKGPacket) GetTimeout() string
func (*InitDKGPacket) ProtoMessage ¶ added in v0.5.2
func (*InitDKGPacket) ProtoMessage()
func (*InitDKGPacket) Reset ¶ added in v0.5.2
func (m *InitDKGPacket) Reset()
func (*InitDKGPacket) String ¶ added in v0.5.2
func (m *InitDKGPacket) String() string
func (*InitDKGPacket) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *InitDKGPacket) XXX_DiscardUnknown()
func (*InitDKGPacket) XXX_Marshal ¶ added in v0.5.2
func (m *InitDKGPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InitDKGPacket) XXX_Merge ¶ added in v0.5.2
func (m *InitDKGPacket) XXX_Merge(src proto.Message)
func (*InitDKGPacket) XXX_Size ¶ added in v0.5.2
func (m *InitDKGPacket) XXX_Size() int
func (*InitDKGPacket) XXX_Unmarshal ¶ added in v0.5.2
func (m *InitDKGPacket) XXX_Unmarshal(b []byte) error
type InitResharePacket ¶ added in v0.5.2
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.2
func (*InitResharePacket) Descriptor() ([]byte, []int)
func (*InitResharePacket) GetIsLeader ¶ added in v0.5.2
func (m *InitResharePacket) GetIsLeader() bool
func (*InitResharePacket) GetNew ¶ added in v0.5.2
func (m *InitResharePacket) GetNew() *GroupInfo
func (*InitResharePacket) GetOld ¶ added in v0.5.2
func (m *InitResharePacket) GetOld() *GroupInfo
func (*InitResharePacket) GetTimeout ¶ added in v0.5.2
func (m *InitResharePacket) GetTimeout() string
func (*InitResharePacket) ProtoMessage ¶ added in v0.5.2
func (*InitResharePacket) ProtoMessage()
func (*InitResharePacket) Reset ¶ added in v0.5.2
func (m *InitResharePacket) Reset()
func (*InitResharePacket) String ¶ added in v0.5.2
func (m *InitResharePacket) String() string
func (*InitResharePacket) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *InitResharePacket) XXX_DiscardUnknown()
func (*InitResharePacket) XXX_Marshal ¶ added in v0.5.2
func (m *InitResharePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InitResharePacket) XXX_Merge ¶ added in v0.5.2
func (m *InitResharePacket) XXX_Merge(src proto.Message)
func (*InitResharePacket) XXX_Size ¶ added in v0.5.2
func (m *InitResharePacket) XXX_Size() int
func (*InitResharePacket) XXX_Unmarshal ¶ added in v0.5.2
func (m *InitResharePacket) XXX_Unmarshal(b []byte) error
type Node ¶ added in v0.5.2
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.2
func (*Node) GetAddress ¶ added in v0.5.2
func (*Node) ProtoMessage ¶ added in v0.5.2
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Marshal ¶ added in v0.5.2
func (*Node) XXX_Unmarshal ¶ added in v0.5.2
type Ping ¶ added in v0.5.2
type Ping struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ping) Descriptor ¶ added in v0.5.2
func (*Ping) ProtoMessage ¶ added in v0.5.2
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Marshal ¶ added in v0.5.2
func (*Ping) XXX_Unmarshal ¶ added in v0.5.2
type Pong ¶ added in v0.5.2
type Pong struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pong) Descriptor ¶ added in v0.5.2
func (*Pong) ProtoMessage ¶ added in v0.5.2
func (*Pong) ProtoMessage()
func (*Pong) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *Pong) XXX_DiscardUnknown()
func (*Pong) XXX_Marshal ¶ added in v0.5.2
func (*Pong) XXX_Unmarshal ¶ added in v0.5.2
type PrivateKeyRequest ¶ added in v0.5.2
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.2
func (*PrivateKeyRequest) Descriptor() ([]byte, []int)
func (*PrivateKeyRequest) ProtoMessage ¶ added in v0.5.2
func (*PrivateKeyRequest) ProtoMessage()
func (*PrivateKeyRequest) Reset ¶ added in v0.5.2
func (m *PrivateKeyRequest) Reset()
func (*PrivateKeyRequest) String ¶ added in v0.5.2
func (m *PrivateKeyRequest) String() string
func (*PrivateKeyRequest) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *PrivateKeyRequest) XXX_DiscardUnknown()
func (*PrivateKeyRequest) XXX_Marshal ¶ added in v0.5.2
func (m *PrivateKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivateKeyRequest) XXX_Merge ¶ added in v0.5.2
func (m *PrivateKeyRequest) XXX_Merge(src proto.Message)
func (*PrivateKeyRequest) XXX_Size ¶ added in v0.5.2
func (m *PrivateKeyRequest) XXX_Size() int
func (*PrivateKeyRequest) XXX_Unmarshal ¶ added in v0.5.2
func (m *PrivateKeyRequest) XXX_Unmarshal(b []byte) error
type PrivateKeyResponse ¶ added in v0.5.2
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.2
func (*PrivateKeyResponse) Descriptor() ([]byte, []int)
func (*PrivateKeyResponse) GetPriKey ¶ added in v0.5.2
func (m *PrivateKeyResponse) GetPriKey() []byte
func (*PrivateKeyResponse) ProtoMessage ¶ added in v0.5.2
func (*PrivateKeyResponse) ProtoMessage()
func (*PrivateKeyResponse) Reset ¶ added in v0.5.2
func (m *PrivateKeyResponse) Reset()
func (*PrivateKeyResponse) String ¶ added in v0.5.2
func (m *PrivateKeyResponse) String() string
func (*PrivateKeyResponse) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *PrivateKeyResponse) XXX_DiscardUnknown()
func (*PrivateKeyResponse) XXX_Marshal ¶ added in v0.5.2
func (m *PrivateKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivateKeyResponse) XXX_Merge ¶ added in v0.5.2
func (m *PrivateKeyResponse) XXX_Merge(src proto.Message)
func (*PrivateKeyResponse) XXX_Size ¶ added in v0.5.2
func (m *PrivateKeyResponse) XXX_Size() int
func (*PrivateKeyResponse) XXX_Unmarshal ¶ added in v0.5.2
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 (m *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 (m *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.2
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 *BeaconPacket, opts ...grpc.CallOption) (*Empty, error) SyncChain(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (Protocol_SyncChainClient, 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.2
func NewProtocolClient(cc grpc.ClientConnInterface) ProtocolClient
type ProtocolServer ¶ added in v0.5.2
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, *BeaconPacket) (*Empty, error) SyncChain(*SyncRequest, Protocol_SyncChainServer) error }
ProtocolServer is the server API for Protocol service.
type Protocol_SyncChainClient ¶ added in v0.6.1
type Protocol_SyncChainClient interface { Recv() (*SyncResponse, error) grpc.ClientStream }
type Protocol_SyncChainServer ¶ added in v0.6.1
type Protocol_SyncChainServer interface { Send(*SyncResponse) error grpc.ServerStream }
type PublicClient ¶ added in v0.5.2
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) PublicRandStream(ctx context.Context, in *PublicRandRequest, opts ...grpc.CallOption) (Public_PublicRandStreamClient, 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.2
func NewPublicClient(cc grpc.ClientConnInterface) PublicClient
type PublicKeyRequest ¶ added in v0.5.2
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.2
func (*PublicKeyRequest) Descriptor() ([]byte, []int)
func (*PublicKeyRequest) ProtoMessage ¶ added in v0.5.2
func (*PublicKeyRequest) ProtoMessage()
func (*PublicKeyRequest) Reset ¶ added in v0.5.2
func (m *PublicKeyRequest) Reset()
func (*PublicKeyRequest) String ¶ added in v0.5.2
func (m *PublicKeyRequest) String() string
func (*PublicKeyRequest) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *PublicKeyRequest) XXX_DiscardUnknown()
func (*PublicKeyRequest) XXX_Marshal ¶ added in v0.5.2
func (m *PublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicKeyRequest) XXX_Merge ¶ added in v0.5.2
func (m *PublicKeyRequest) XXX_Merge(src proto.Message)
func (*PublicKeyRequest) XXX_Size ¶ added in v0.5.2
func (m *PublicKeyRequest) XXX_Size() int
func (*PublicKeyRequest) XXX_Unmarshal ¶ added in v0.5.2
func (m *PublicKeyRequest) XXX_Unmarshal(b []byte) error
type PublicKeyResponse ¶ added in v0.5.2
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.2
func (*PublicKeyResponse) Descriptor() ([]byte, []int)
func (*PublicKeyResponse) GetPubKey ¶ added in v0.5.2
func (m *PublicKeyResponse) GetPubKey() []byte
func (*PublicKeyResponse) ProtoMessage ¶ added in v0.5.2
func (*PublicKeyResponse) ProtoMessage()
func (*PublicKeyResponse) Reset ¶ added in v0.5.2
func (m *PublicKeyResponse) Reset()
func (*PublicKeyResponse) String ¶ added in v0.5.2
func (m *PublicKeyResponse) String() string
func (*PublicKeyResponse) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *PublicKeyResponse) XXX_DiscardUnknown()
func (*PublicKeyResponse) XXX_Marshal ¶ added in v0.5.2
func (m *PublicKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicKeyResponse) XXX_Merge ¶ added in v0.5.2
func (m *PublicKeyResponse) XXX_Merge(src proto.Message)
func (*PublicKeyResponse) XXX_Size ¶ added in v0.5.2
func (m *PublicKeyResponse) XXX_Size() int
func (*PublicKeyResponse) XXX_Unmarshal ¶ added in v0.5.2
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 (m *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"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` PreviousRound uint64 `protobuf:"varint,3,opt,name=previous_round,json=previousRound,proto3" json:"previous_round,omitempty"` PreviousSignature []byte `protobuf:"bytes,4,opt,name=previous_signature,json=previousSignature,proto3" json:"previous_signature,omitempty"` // randomness is simply there to demonstrate - it is the hash of the // signature. It should be computed locally. Randomness []byte `protobuf:"bytes,5,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) GetPreviousRound ¶ added in v0.6.1
func (m *PublicRandResponse) GetPreviousRound() uint64
func (*PublicRandResponse) GetPreviousSignature ¶ added in v0.6.1
func (m *PublicRandResponse) GetPreviousSignature() []byte
func (*PublicRandResponse) GetRandomness ¶
func (m *PublicRandResponse) GetRandomness() []byte
func (*PublicRandResponse) GetRound ¶
func (m *PublicRandResponse) GetRound() uint64
func (*PublicRandResponse) GetSignature ¶ added in v0.5.2
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 (m *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.2
type PublicServer interface { // PublicRand is the method that returns the publicly verifiable randomness // generated by the drand network. PublicRand(context.Context, *PublicRandRequest) (*PublicRandResponse, error) PublicRandStream(*PublicRandRequest, Public_PublicRandStreamServer) 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 Public_PublicRandStreamClient ¶ added in v0.6.1
type Public_PublicRandStreamClient interface { Recv() (*PublicRandResponse, error) grpc.ClientStream }
type Public_PublicRandStreamServer ¶ added in v0.6.1
type Public_PublicRandStreamServer interface { Send(*PublicRandResponse) error grpc.ServerStream }
type ResharePacket ¶ added in v0.5.2
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.2
func (*ResharePacket) Descriptor() ([]byte, []int)
func (*ResharePacket) GetDkg ¶ added in v0.5.2
func (m *ResharePacket) GetDkg() *dkg.Packet
func (*ResharePacket) GetGroupHash ¶ added in v0.5.2
func (m *ResharePacket) GetGroupHash() string
func (*ResharePacket) ProtoMessage ¶ added in v0.5.2
func (*ResharePacket) ProtoMessage()
func (*ResharePacket) Reset ¶ added in v0.5.2
func (m *ResharePacket) Reset()
func (*ResharePacket) String ¶ added in v0.5.2
func (m *ResharePacket) String() string
func (*ResharePacket) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *ResharePacket) XXX_DiscardUnknown()
func (*ResharePacket) XXX_Marshal ¶ added in v0.5.2
func (m *ResharePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResharePacket) XXX_Merge ¶ added in v0.5.2
func (m *ResharePacket) XXX_Merge(src proto.Message)
func (*ResharePacket) XXX_Size ¶ added in v0.5.2
func (m *ResharePacket) XXX_Size() int
func (*ResharePacket) XXX_Unmarshal ¶ added in v0.5.2
func (m *ResharePacket) XXX_Unmarshal(b []byte) error
type SetupPacket ¶ added in v0.5.2
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.2
func (*SetupPacket) Descriptor() ([]byte, []int)
func (*SetupPacket) GetDkg ¶ added in v0.5.2
func (m *SetupPacket) GetDkg() *dkg.Packet
func (*SetupPacket) ProtoMessage ¶ added in v0.5.2
func (*SetupPacket) ProtoMessage()
func (*SetupPacket) Reset ¶ added in v0.5.2
func (m *SetupPacket) Reset()
func (*SetupPacket) String ¶ added in v0.5.2
func (m *SetupPacket) String() string
func (*SetupPacket) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *SetupPacket) XXX_DiscardUnknown()
func (*SetupPacket) XXX_Marshal ¶ added in v0.5.2
func (m *SetupPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetupPacket) XXX_Merge ¶ added in v0.5.2
func (m *SetupPacket) XXX_Merge(src proto.Message)
func (*SetupPacket) XXX_Size ¶ added in v0.5.2
func (m *SetupPacket) XXX_Size() int
func (*SetupPacket) XXX_Unmarshal ¶ added in v0.5.2
func (m *SetupPacket) XXX_Unmarshal(b []byte) error
type ShareRequest ¶ added in v0.5.2
type ShareRequest struct {}
ShareRequest requests the private share of a drand node
func (*ShareRequest) Descriptor ¶ added in v0.5.2
func (*ShareRequest) Descriptor() ([]byte, []int)
func (*ShareRequest) ProtoMessage ¶ added in v0.5.2
func (*ShareRequest) ProtoMessage()
func (*ShareRequest) Reset ¶ added in v0.5.2
func (m *ShareRequest) Reset()
func (*ShareRequest) String ¶ added in v0.5.2
func (m *ShareRequest) String() string
func (*ShareRequest) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *ShareRequest) XXX_DiscardUnknown()
func (*ShareRequest) XXX_Marshal ¶ added in v0.5.2
func (m *ShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShareRequest) XXX_Merge ¶ added in v0.5.2
func (m *ShareRequest) XXX_Merge(src proto.Message)
func (*ShareRequest) XXX_Size ¶ added in v0.5.2
func (m *ShareRequest) XXX_Size() int
func (*ShareRequest) XXX_Unmarshal ¶ added in v0.5.2
func (m *ShareRequest) XXX_Unmarshal(b []byte) error
type ShareResponse ¶ added in v0.5.2
type ShareResponse struct {}
ShareResponse holds the private share of a drand node
func (*ShareResponse) Descriptor ¶ added in v0.5.2
func (*ShareResponse) Descriptor() ([]byte, []int)
func (*ShareResponse) GetIndex ¶ added in v0.5.2
func (m *ShareResponse) GetIndex() uint32
func (*ShareResponse) GetShare ¶ added in v0.5.2
func (m *ShareResponse) GetShare() []byte
func (*ShareResponse) ProtoMessage ¶ added in v0.5.2
func (*ShareResponse) ProtoMessage()
func (*ShareResponse) Reset ¶ added in v0.5.2
func (m *ShareResponse) Reset()
func (*ShareResponse) String ¶ added in v0.5.2
func (m *ShareResponse) String() string
func (*ShareResponse) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *ShareResponse) XXX_DiscardUnknown()
func (*ShareResponse) XXX_Marshal ¶ added in v0.5.2
func (m *ShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShareResponse) XXX_Merge ¶ added in v0.5.2
func (m *ShareResponse) XXX_Merge(src proto.Message)
func (*ShareResponse) XXX_Size ¶ added in v0.5.2
func (m *ShareResponse) XXX_Size() int
func (*ShareResponse) XXX_Unmarshal ¶ added in v0.5.2
func (m *ShareResponse) XXX_Unmarshal(b []byte) error
type ShutdownRequest ¶ added in v0.5.4
type ShutdownRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ShutdownRequest) Descriptor ¶ added in v0.5.4
func (*ShutdownRequest) Descriptor() ([]byte, []int)
func (*ShutdownRequest) ProtoMessage ¶ added in v0.5.4
func (*ShutdownRequest) ProtoMessage()
func (*ShutdownRequest) Reset ¶ added in v0.5.4
func (m *ShutdownRequest) Reset()
func (*ShutdownRequest) String ¶ added in v0.5.4
func (m *ShutdownRequest) String() string
func (*ShutdownRequest) XXX_DiscardUnknown ¶ added in v0.5.4
func (m *ShutdownRequest) XXX_DiscardUnknown()
func (*ShutdownRequest) XXX_Marshal ¶ added in v0.5.4
func (m *ShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShutdownRequest) XXX_Merge ¶ added in v0.5.4
func (m *ShutdownRequest) XXX_Merge(src proto.Message)
func (*ShutdownRequest) XXX_Size ¶ added in v0.5.4
func (m *ShutdownRequest) XXX_Size() int
func (*ShutdownRequest) XXX_Unmarshal ¶ added in v0.5.4
func (m *ShutdownRequest) XXX_Unmarshal(b []byte) error
type ShutdownResponse ¶ added in v0.5.4
type ShutdownResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ShutdownResponse) Descriptor ¶ added in v0.5.4
func (*ShutdownResponse) Descriptor() ([]byte, []int)
func (*ShutdownResponse) ProtoMessage ¶ added in v0.5.4
func (*ShutdownResponse) ProtoMessage()
func (*ShutdownResponse) Reset ¶ added in v0.5.4
func (m *ShutdownResponse) Reset()
func (*ShutdownResponse) String ¶ added in v0.5.4
func (m *ShutdownResponse) String() string
func (*ShutdownResponse) XXX_DiscardUnknown ¶ added in v0.5.4
func (m *ShutdownResponse) XXX_DiscardUnknown()
func (*ShutdownResponse) XXX_Marshal ¶ added in v0.5.4
func (m *ShutdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShutdownResponse) XXX_Merge ¶ added in v0.5.4
func (m *ShutdownResponse) XXX_Merge(src proto.Message)
func (*ShutdownResponse) XXX_Size ¶ added in v0.5.4
func (m *ShutdownResponse) XXX_Size() int
func (*ShutdownResponse) XXX_Unmarshal ¶ added in v0.5.4
func (m *ShutdownResponse) XXX_Unmarshal(b []byte) error
type SyncRequest ¶ added in v0.6.1
type SyncRequest struct { FromRound uint64 `protobuf:"varint,1,opt,name=from_round,json=fromRound,proto3" json:"from_round,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SyncRequest is from a node that needs to sync up with the current head of the chain
func (*SyncRequest) Descriptor ¶ added in v0.6.1
func (*SyncRequest) Descriptor() ([]byte, []int)
func (*SyncRequest) GetFromRound ¶ added in v0.6.1
func (m *SyncRequest) GetFromRound() uint64
func (*SyncRequest) ProtoMessage ¶ added in v0.6.1
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) Reset ¶ added in v0.6.1
func (m *SyncRequest) Reset()
func (*SyncRequest) String ¶ added in v0.6.1
func (m *SyncRequest) String() string
func (*SyncRequest) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *SyncRequest) XXX_DiscardUnknown()
func (*SyncRequest) XXX_Marshal ¶ added in v0.6.1
func (m *SyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncRequest) XXX_Merge ¶ added in v0.6.1
func (m *SyncRequest) XXX_Merge(src proto.Message)
func (*SyncRequest) XXX_Size ¶ added in v0.6.1
func (m *SyncRequest) XXX_Size() int
func (*SyncRequest) XXX_Unmarshal ¶ added in v0.6.1
func (m *SyncRequest) XXX_Unmarshal(b []byte) error
type SyncResponse ¶ added in v0.6.1
type SyncResponse struct { PreviousRound uint64 `protobuf:"varint,1,opt,name=previous_round,json=previousRound,proto3" json:"previous_round,omitempty"` PreviousSig []byte `protobuf:"bytes,2,opt,name=previous_sig,json=previousSig,proto3" json:"previous_sig,omitempty"` Round uint64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SyncResponse is basically a chain of beacon response
func (*SyncResponse) Descriptor ¶ added in v0.6.1
func (*SyncResponse) Descriptor() ([]byte, []int)
func (*SyncResponse) GetPreviousRound ¶ added in v0.6.1
func (m *SyncResponse) GetPreviousRound() uint64
func (*SyncResponse) GetPreviousSig ¶ added in v0.6.1
func (m *SyncResponse) GetPreviousSig() []byte
func (*SyncResponse) GetRound ¶ added in v0.6.1
func (m *SyncResponse) GetRound() uint64
func (*SyncResponse) GetSignature ¶ added in v0.6.1
func (m *SyncResponse) GetSignature() []byte
func (*SyncResponse) ProtoMessage ¶ added in v0.6.1
func (*SyncResponse) ProtoMessage()
func (*SyncResponse) Reset ¶ added in v0.6.1
func (m *SyncResponse) Reset()
func (*SyncResponse) String ¶ added in v0.6.1
func (m *SyncResponse) String() string
func (*SyncResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *SyncResponse) XXX_DiscardUnknown()
func (*SyncResponse) XXX_Marshal ¶ added in v0.6.1
func (m *SyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncResponse) XXX_Merge ¶ added in v0.6.1
func (m *SyncResponse) XXX_Merge(src proto.Message)
func (*SyncResponse) XXX_Size ¶ added in v0.6.1
func (m *SyncResponse) XXX_Size() int
func (*SyncResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *SyncResponse) XXX_Unmarshal(b []byte) error
type UnimplementedControlServer ¶ added in v0.6.1
type UnimplementedControlServer struct { }
UnimplementedControlServer can be embedded to have forward compatible implementations.
func (*UnimplementedControlServer) CollectiveKey ¶ added in v0.6.1
func (*UnimplementedControlServer) CollectiveKey(ctx context.Context, req *CokeyRequest) (*CokeyResponse, error)
func (*UnimplementedControlServer) GroupFile ¶ added in v0.6.1
func (*UnimplementedControlServer) GroupFile(ctx context.Context, req *GroupTOMLRequest) (*GroupTOMLResponse, error)
func (*UnimplementedControlServer) InitDKG ¶ added in v0.6.1
func (*UnimplementedControlServer) InitDKG(ctx context.Context, req *InitDKGPacket) (*Empty, error)
func (*UnimplementedControlServer) InitReshare ¶ added in v0.6.1
func (*UnimplementedControlServer) InitReshare(ctx context.Context, req *InitResharePacket) (*Empty, error)
func (*UnimplementedControlServer) PrivateKey ¶ added in v0.6.1
func (*UnimplementedControlServer) PrivateKey(ctx context.Context, req *PrivateKeyRequest) (*PrivateKeyResponse, error)
func (*UnimplementedControlServer) PublicKey ¶ added in v0.6.1
func (*UnimplementedControlServer) PublicKey(ctx context.Context, req *PublicKeyRequest) (*PublicKeyResponse, error)
func (*UnimplementedControlServer) Share ¶ added in v0.6.1
func (*UnimplementedControlServer) Share(ctx context.Context, req *ShareRequest) (*ShareResponse, error)
func (*UnimplementedControlServer) Shutdown ¶ added in v0.6.1
func (*UnimplementedControlServer) Shutdown(ctx context.Context, req *ShutdownRequest) (*ShutdownResponse, error)
type UnimplementedProtocolServer ¶ added in v0.6.1
type UnimplementedProtocolServer struct { }
UnimplementedProtocolServer can be embedded to have forward compatible implementations.
func (*UnimplementedProtocolServer) NewBeacon ¶ added in v0.6.1
func (*UnimplementedProtocolServer) NewBeacon(ctx context.Context, req *BeaconPacket) (*Empty, error)
func (*UnimplementedProtocolServer) Reshare ¶ added in v0.6.1
func (*UnimplementedProtocolServer) Reshare(ctx context.Context, req *ResharePacket) (*Empty, error)
func (*UnimplementedProtocolServer) Setup ¶ added in v0.6.1
func (*UnimplementedProtocolServer) Setup(ctx context.Context, req *SetupPacket) (*Empty, error)
func (*UnimplementedProtocolServer) SyncChain ¶ added in v0.6.1
func (*UnimplementedProtocolServer) SyncChain(req *SyncRequest, srv Protocol_SyncChainServer) error
type UnimplementedPublicServer ¶ added in v0.6.1
type UnimplementedPublicServer struct { }
UnimplementedPublicServer can be embedded to have forward compatible implementations.
func (*UnimplementedPublicServer) DistKey ¶ added in v0.6.1
func (*UnimplementedPublicServer) DistKey(ctx context.Context, req *DistKeyRequest) (*DistKeyResponse, error)
func (*UnimplementedPublicServer) Group ¶ added in v0.6.1
func (*UnimplementedPublicServer) Group(ctx context.Context, req *GroupRequest) (*GroupResponse, error)
func (*UnimplementedPublicServer) Home ¶ added in v0.6.1
func (*UnimplementedPublicServer) Home(ctx context.Context, req *HomeRequest) (*HomeResponse, error)
func (*UnimplementedPublicServer) PrivateRand ¶ added in v0.6.1
func (*UnimplementedPublicServer) PrivateRand(ctx context.Context, req *PrivateRandRequest) (*PrivateRandResponse, error)
func (*UnimplementedPublicServer) PublicRand ¶ added in v0.6.1
func (*UnimplementedPublicServer) PublicRand(ctx context.Context, req *PublicRandRequest) (*PublicRandResponse, error)
func (*UnimplementedPublicServer) PublicRandStream ¶ added in v0.6.1
func (*UnimplementedPublicServer) PublicRandStream(req *PublicRandRequest, srv Public_PublicRandStreamServer) error