Documentation ¶
Index ¶
- Variables
- func RegisterHeliumServer(s grpc.ServiceRegistrar, srv HeliumServer)
- type AggregationOutput
- func (*AggregationOutput) Descriptor() ([]byte, []int)deprecated
- func (x *AggregationOutput) GetAggregatedShare() *Share
- func (*AggregationOutput) ProtoMessage()
- func (x *AggregationOutput) ProtoReflect() protoreflect.Message
- func (x *AggregationOutput) Reset()
- func (x *AggregationOutput) String() string
- type Ciphertext
- func (*Ciphertext) Descriptor() ([]byte, []int)deprecated
- func (x *Ciphertext) GetCiphertext() []byte
- func (x *Ciphertext) GetMetadata() *CiphertextMetadata
- func (*Ciphertext) ProtoMessage()
- func (x *Ciphertext) ProtoReflect() protoreflect.Message
- func (x *Ciphertext) Reset()
- func (x *Ciphertext) String() string
- type CiphertextID
- type CiphertextMetadata
- func (*CiphertextMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *CiphertextMetadata) GetId() *CiphertextID
- func (x *CiphertextMetadata) GetType() CiphertextType
- func (*CiphertextMetadata) ProtoMessage()
- func (x *CiphertextMetadata) ProtoReflect() protoreflect.Message
- func (x *CiphertextMetadata) Reset()
- func (x *CiphertextMetadata) String() string
- type CiphertextType
- func (CiphertextType) Descriptor() protoreflect.EnumDescriptor
- func (x CiphertextType) Enum() *CiphertextType
- func (CiphertextType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CiphertextType) Number() protoreflect.EnumNumber
- func (x CiphertextType) String() string
- func (CiphertextType) Type() protoreflect.EnumType
- type CircuitDescriptor
- func (*CircuitDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *CircuitDescriptor) GetCircuitID() *CircuitID
- func (x *CircuitDescriptor) GetCircuitSignature() *CircuitSignature
- func (x *CircuitDescriptor) GetEvaluator() *NodeID
- func (x *CircuitDescriptor) GetNodeMapping() map[string]*NodeID
- func (*CircuitDescriptor) ProtoMessage()
- func (x *CircuitDescriptor) ProtoReflect() protoreflect.Message
- func (x *CircuitDescriptor) Reset()
- func (x *CircuitDescriptor) String() string
- type CircuitEvent
- func (*CircuitEvent) Descriptor() ([]byte, []int)deprecated
- func (x *CircuitEvent) GetDescriptor_() *CircuitDescriptor
- func (x *CircuitEvent) GetType() EventType
- func (*CircuitEvent) ProtoMessage()
- func (x *CircuitEvent) ProtoReflect() protoreflect.Message
- func (x *CircuitEvent) Reset()
- func (x *CircuitEvent) String() string
- type CircuitID
- type CircuitSignature
- func (*CircuitSignature) Descriptor() ([]byte, []int)deprecated
- func (x *CircuitSignature) GetArgs() map[string]string
- func (x *CircuitSignature) GetName() string
- func (*CircuitSignature) ProtoMessage()
- func (x *CircuitSignature) ProtoReflect() protoreflect.Message
- func (x *CircuitSignature) Reset()
- func (x *CircuitSignature) String() string
- type ComputeEvent
- func (*ComputeEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ComputeEvent) GetCircuitEvent() *CircuitEvent
- func (x *ComputeEvent) GetProtocolEvent() *ProtocolEvent
- func (*ComputeEvent) ProtoMessage()
- func (x *ComputeEvent) ProtoReflect() protoreflect.Message
- func (x *ComputeEvent) Reset()
- func (x *ComputeEvent) String() string
- type EventType
- type HeliumClient
- type HeliumServer
- type Helium_RegisterClient
- type Helium_RegisterServer
- type NodeEvent
- func (*NodeEvent) Descriptor() ([]byte, []int)deprecated
- func (x *NodeEvent) GetComputeEvent() *ComputeEvent
- func (m *NodeEvent) GetEvent() isNodeEvent_Event
- func (x *NodeEvent) GetSetupEvent() *SetupEvent
- func (*NodeEvent) ProtoMessage()
- func (x *NodeEvent) ProtoReflect() protoreflect.Message
- func (x *NodeEvent) Reset()
- func (x *NodeEvent) String() string
- type NodeEvent_ComputeEvent
- type NodeEvent_SetupEvent
- type NodeID
- type ProtocolDescriptor
- func (*ProtocolDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolDescriptor) GetAggregator() *NodeID
- func (x *ProtocolDescriptor) GetArgs() map[string]string
- func (x *ProtocolDescriptor) GetParticipants() []*NodeID
- func (x *ProtocolDescriptor) GetProtocolType() ProtocolType
- func (x *ProtocolDescriptor) GetReceivers() []*NodeID
- func (*ProtocolDescriptor) ProtoMessage()
- func (x *ProtocolDescriptor) ProtoReflect() protoreflect.Message
- func (x *ProtocolDescriptor) Reset()
- func (x *ProtocolDescriptor) String() string
- type ProtocolEvent
- func (*ProtocolEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolEvent) GetDescriptor_() *ProtocolDescriptor
- func (x *ProtocolEvent) GetType() EventType
- func (*ProtocolEvent) ProtoMessage()
- func (x *ProtocolEvent) ProtoReflect() protoreflect.Message
- func (x *ProtocolEvent) Reset()
- func (x *ProtocolEvent) String() string
- type ProtocolID
- type ProtocolType
- func (ProtocolType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtocolType) Enum() *ProtocolType
- func (ProtocolType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtocolType) Number() protoreflect.EnumNumber
- func (x ProtocolType) String() string
- func (ProtocolType) Type() protoreflect.EnumType
- type SessionID
- type SetupEvent
- type Share
- type ShareMetadata
- func (*ShareMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ShareMetadata) GetAggregateFor() []*NodeID
- func (x *ShareMetadata) GetProtocolID() *ProtocolID
- func (x *ShareMetadata) GetProtocolType() ProtocolType
- func (*ShareMetadata) ProtoMessage()
- func (x *ShareMetadata) ProtoReflect() protoreflect.Message
- func (x *ShareMetadata) Reset()
- func (x *ShareMetadata) String() string
- type UnimplementedHeliumServer
- func (UnimplementedHeliumServer) GetAggregationOutput(context.Context, *ProtocolDescriptor) (*AggregationOutput, error)
- func (UnimplementedHeliumServer) GetCiphertext(context.Context, *CiphertextID) (*Ciphertext, error)
- func (UnimplementedHeliumServer) PutCiphertext(context.Context, *Ciphertext) (*CiphertextID, error)
- func (UnimplementedHeliumServer) PutShare(context.Context, *Share) (*Void, error)
- func (UnimplementedHeliumServer) Register(*Void, Helium_RegisterServer) error
- type UnsafeHeliumServer
- type Void
Constants ¶
This section is empty.
Variables ¶
var ( EventType_name = map[int32]string{ 0: "Completed", 1: "Started", 2: "Executing", 3: "Failed", } EventType_value = map[string]int32{ "Completed": 0, "Started": 1, "Executing": 2, "Failed": 3, } )
Enum value maps for EventType.
var ( ProtocolType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "SKG", 2: "CKG", 3: "RKG_1", 4: "RKG", 5: "RTG", 6: "CKS", 7: "DEC", 8: "PCKS", } ProtocolType_value = map[string]int32{ "UNSPECIFIED": 0, "SKG": 1, "CKG": 2, "RKG_1": 3, "RKG": 4, "RTG": 5, "CKS": 6, "DEC": 7, "PCKS": 8, } )
Enum value maps for ProtocolType.
var ( CiphertextType_name = map[int32]string{ 0: "UNSPECIFIED_CT_TYPE", 1: "BFV", 2: "BGV", 3: "CKKS", 4: "RGSW", } CiphertextType_value = map[string]int32{ "UNSPECIFIED_CT_TYPE": 0, "BFV": 1, "BGV": 2, "CKKS": 3, "RGSW": 4, } )
Enum value maps for CiphertextType.
var File_helium_proto protoreflect.FileDescriptor
var Helium_ServiceDesc = grpc.ServiceDesc{ ServiceName: "helium_proto.Helium", HandlerType: (*HeliumServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PutShare", Handler: _Helium_PutShare_Handler, }, { MethodName: "GetAggregationOutput", Handler: _Helium_GetAggregationOutput_Handler, }, { MethodName: "GetCiphertext", Handler: _Helium_GetCiphertext_Handler, }, { MethodName: "PutCiphertext", Handler: _Helium_PutCiphertext_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Register", Handler: _Helium_Register_Handler, ServerStreams: true, }, }, Metadata: "helium.proto", }
Helium_ServiceDesc is the grpc.ServiceDesc for Helium service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHeliumServer ¶
func RegisterHeliumServer(s grpc.ServiceRegistrar, srv HeliumServer)
Types ¶
type AggregationOutput ¶
type AggregationOutput struct { // contains filtered or unexported fields }
func (*AggregationOutput) Descriptor
deprecated
func (*AggregationOutput) Descriptor() ([]byte, []int)
Deprecated: Use AggregationOutput.ProtoReflect.Descriptor instead.
func (*AggregationOutput) GetAggregatedShare ¶
func (x *AggregationOutput) GetAggregatedShare() *Share
func (*AggregationOutput) ProtoMessage ¶
func (*AggregationOutput) ProtoMessage()
func (*AggregationOutput) ProtoReflect ¶
func (x *AggregationOutput) ProtoReflect() protoreflect.Message
func (*AggregationOutput) Reset ¶
func (x *AggregationOutput) Reset()
func (*AggregationOutput) String ¶
func (x *AggregationOutput) String() string
type Ciphertext ¶
type Ciphertext struct { Ciphertext []byte `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` Metadata *CiphertextMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*Ciphertext) Descriptor
deprecated
func (*Ciphertext) Descriptor() ([]byte, []int)
Deprecated: Use Ciphertext.ProtoReflect.Descriptor instead.
func (*Ciphertext) GetCiphertext ¶
func (x *Ciphertext) GetCiphertext() []byte
func (*Ciphertext) GetMetadata ¶
func (x *Ciphertext) GetMetadata() *CiphertextMetadata
func (*Ciphertext) ProtoMessage ¶
func (*Ciphertext) ProtoMessage()
func (*Ciphertext) ProtoReflect ¶
func (x *Ciphertext) ProtoReflect() protoreflect.Message
func (*Ciphertext) Reset ¶
func (x *Ciphertext) Reset()
func (*Ciphertext) String ¶
func (x *Ciphertext) String() string
type CiphertextID ¶
type CiphertextID struct { CiphertextId string `protobuf:"bytes,1,opt,name=ciphertext_id,json=ciphertextId,proto3" json:"ciphertext_id,omitempty"` // contains filtered or unexported fields }
func (*CiphertextID) Descriptor
deprecated
func (*CiphertextID) Descriptor() ([]byte, []int)
Deprecated: Use CiphertextID.ProtoReflect.Descriptor instead.
func (*CiphertextID) GetCiphertextId ¶
func (x *CiphertextID) GetCiphertextId() string
func (*CiphertextID) ProtoMessage ¶
func (*CiphertextID) ProtoMessage()
func (*CiphertextID) ProtoReflect ¶
func (x *CiphertextID) ProtoReflect() protoreflect.Message
func (*CiphertextID) Reset ¶
func (x *CiphertextID) Reset()
func (*CiphertextID) String ¶
func (x *CiphertextID) String() string
type CiphertextMetadata ¶
type CiphertextMetadata struct { Id *CiphertextID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type *CiphertextType `protobuf:"varint,2,opt,name=type,proto3,enum=helium_proto.CiphertextType,oneof" json:"type,omitempty"` // contains filtered or unexported fields }
func (*CiphertextMetadata) Descriptor
deprecated
func (*CiphertextMetadata) Descriptor() ([]byte, []int)
Deprecated: Use CiphertextMetadata.ProtoReflect.Descriptor instead.
func (*CiphertextMetadata) GetId ¶
func (x *CiphertextMetadata) GetId() *CiphertextID
func (*CiphertextMetadata) GetType ¶
func (x *CiphertextMetadata) GetType() CiphertextType
func (*CiphertextMetadata) ProtoMessage ¶
func (*CiphertextMetadata) ProtoMessage()
func (*CiphertextMetadata) ProtoReflect ¶
func (x *CiphertextMetadata) ProtoReflect() protoreflect.Message
func (*CiphertextMetadata) Reset ¶
func (x *CiphertextMetadata) Reset()
func (*CiphertextMetadata) String ¶
func (x *CiphertextMetadata) String() string
type CiphertextType ¶
type CiphertextType int32
const ( CiphertextType_UNSPECIFIED_CT_TYPE CiphertextType = 0 CiphertextType_BFV CiphertextType = 1 CiphertextType_BGV CiphertextType = 2 CiphertextType_CKKS CiphertextType = 3 CiphertextType_RGSW CiphertextType = 4 )
func (CiphertextType) Descriptor ¶
func (CiphertextType) Descriptor() protoreflect.EnumDescriptor
func (CiphertextType) Enum ¶
func (x CiphertextType) Enum() *CiphertextType
func (CiphertextType) EnumDescriptor
deprecated
func (CiphertextType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CiphertextType.Descriptor instead.
func (CiphertextType) Number ¶
func (x CiphertextType) Number() protoreflect.EnumNumber
func (CiphertextType) String ¶
func (x CiphertextType) String() string
func (CiphertextType) Type ¶
func (CiphertextType) Type() protoreflect.EnumType
type CircuitDescriptor ¶
type CircuitDescriptor struct { CircuitSignature *CircuitSignature `protobuf:"bytes,1,opt,name=CircuitSignature,proto3" json:"CircuitSignature,omitempty"` CircuitID *CircuitID `protobuf:"bytes,2,opt,name=CircuitID,proto3" json:"CircuitID,omitempty"` NodeMapping map[string]*NodeID `` /* 163-byte string literal not displayed */ Evaluator *NodeID `protobuf:"bytes,4,opt,name=Evaluator,proto3" json:"Evaluator,omitempty"` // contains filtered or unexported fields }
func (*CircuitDescriptor) Descriptor
deprecated
func (*CircuitDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use CircuitDescriptor.ProtoReflect.Descriptor instead.
func (*CircuitDescriptor) GetCircuitID ¶
func (x *CircuitDescriptor) GetCircuitID() *CircuitID
func (*CircuitDescriptor) GetCircuitSignature ¶
func (x *CircuitDescriptor) GetCircuitSignature() *CircuitSignature
func (*CircuitDescriptor) GetEvaluator ¶
func (x *CircuitDescriptor) GetEvaluator() *NodeID
func (*CircuitDescriptor) GetNodeMapping ¶
func (x *CircuitDescriptor) GetNodeMapping() map[string]*NodeID
func (*CircuitDescriptor) ProtoMessage ¶
func (*CircuitDescriptor) ProtoMessage()
func (*CircuitDescriptor) ProtoReflect ¶
func (x *CircuitDescriptor) ProtoReflect() protoreflect.Message
func (*CircuitDescriptor) Reset ¶
func (x *CircuitDescriptor) Reset()
func (*CircuitDescriptor) String ¶
func (x *CircuitDescriptor) String() string
type CircuitEvent ¶
type CircuitEvent struct { Descriptor_ *CircuitDescriptor `protobuf:"bytes,1,opt,name=Descriptor,proto3" json:"Descriptor,omitempty"` Type EventType `protobuf:"varint,2,opt,name=Type,proto3,enum=helium_proto.EventType" json:"Type,omitempty"` // contains filtered or unexported fields }
func (*CircuitEvent) Descriptor
deprecated
func (*CircuitEvent) Descriptor() ([]byte, []int)
Deprecated: Use CircuitEvent.ProtoReflect.Descriptor instead.
func (*CircuitEvent) GetDescriptor_ ¶
func (x *CircuitEvent) GetDescriptor_() *CircuitDescriptor
func (*CircuitEvent) GetType ¶
func (x *CircuitEvent) GetType() EventType
func (*CircuitEvent) ProtoMessage ¶
func (*CircuitEvent) ProtoMessage()
func (*CircuitEvent) ProtoReflect ¶
func (x *CircuitEvent) ProtoReflect() protoreflect.Message
func (*CircuitEvent) Reset ¶
func (x *CircuitEvent) Reset()
func (*CircuitEvent) String ¶
func (x *CircuitEvent) String() string
type CircuitID ¶
type CircuitID struct { CircuitID string `protobuf:"bytes,1,opt,name=CircuitID,proto3" json:"CircuitID,omitempty"` // contains filtered or unexported fields }
func (*CircuitID) Descriptor
deprecated
func (*CircuitID) GetCircuitID ¶
func (*CircuitID) ProtoMessage ¶
func (*CircuitID) ProtoMessage()
func (*CircuitID) ProtoReflect ¶
func (x *CircuitID) ProtoReflect() protoreflect.Message
type CircuitSignature ¶
type CircuitSignature struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Args map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CircuitSignature) Descriptor
deprecated
func (*CircuitSignature) Descriptor() ([]byte, []int)
Deprecated: Use CircuitSignature.ProtoReflect.Descriptor instead.
func (*CircuitSignature) GetArgs ¶
func (x *CircuitSignature) GetArgs() map[string]string
func (*CircuitSignature) GetName ¶
func (x *CircuitSignature) GetName() string
func (*CircuitSignature) ProtoMessage ¶
func (*CircuitSignature) ProtoMessage()
func (*CircuitSignature) ProtoReflect ¶
func (x *CircuitSignature) ProtoReflect() protoreflect.Message
func (*CircuitSignature) Reset ¶
func (x *CircuitSignature) Reset()
func (*CircuitSignature) String ¶
func (x *CircuitSignature) String() string
type ComputeEvent ¶
type ComputeEvent struct { CircuitEvent *CircuitEvent `protobuf:"bytes,1,opt,name=CircuitEvent,proto3" json:"CircuitEvent,omitempty"` ProtocolEvent *ProtocolEvent `protobuf:"bytes,2,opt,name=ProtocolEvent,proto3,oneof" json:"ProtocolEvent,omitempty"` // contains filtered or unexported fields }
func (*ComputeEvent) Descriptor
deprecated
func (*ComputeEvent) Descriptor() ([]byte, []int)
Deprecated: Use ComputeEvent.ProtoReflect.Descriptor instead.
func (*ComputeEvent) GetCircuitEvent ¶
func (x *ComputeEvent) GetCircuitEvent() *CircuitEvent
func (*ComputeEvent) GetProtocolEvent ¶
func (x *ComputeEvent) GetProtocolEvent() *ProtocolEvent
func (*ComputeEvent) ProtoMessage ¶
func (*ComputeEvent) ProtoMessage()
func (*ComputeEvent) ProtoReflect ¶
func (x *ComputeEvent) ProtoReflect() protoreflect.Message
func (*ComputeEvent) Reset ¶
func (x *ComputeEvent) Reset()
func (*ComputeEvent) String ¶
func (x *ComputeEvent) String() string
type EventType ¶
type EventType int32
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
type HeliumClient ¶
type HeliumClient interface { // Register registers the caller as a peer node to the helium server Register(ctx context.Context, in *Void, opts ...grpc.CallOption) (Helium_RegisterClient, error) // field to the callee. PutShare(ctx context.Context, in *Share, opts ...grpc.CallOption) (*Void, error) // GetShare queries the aggregation output of the protocol described by PrototocolDescriptor GetAggregationOutput(ctx context.Context, in *ProtocolDescriptor, opts ...grpc.CallOption) (*AggregationOutput, error) // GetCiphertext queries the ciphertext with the given ID from the callee GetCiphertext(ctx context.Context, in *CiphertextID, opts ...grpc.CallOption) (*Ciphertext, error) // PutCiphertext pushes the ciphertext to the callee PutCiphertext(ctx context.Context, in *Ciphertext, opts ...grpc.CallOption) (*CiphertextID, error) }
HeliumClient is the client API for Helium service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHeliumClient ¶
func NewHeliumClient(cc grpc.ClientConnInterface) HeliumClient
type HeliumServer ¶
type HeliumServer interface { // Register registers the caller as a peer node to the helium server Register(*Void, Helium_RegisterServer) error // field to the callee. PutShare(context.Context, *Share) (*Void, error) // GetShare queries the aggregation output of the protocol described by PrototocolDescriptor GetAggregationOutput(context.Context, *ProtocolDescriptor) (*AggregationOutput, error) // GetCiphertext queries the ciphertext with the given ID from the callee GetCiphertext(context.Context, *CiphertextID) (*Ciphertext, error) // PutCiphertext pushes the ciphertext to the callee PutCiphertext(context.Context, *Ciphertext) (*CiphertextID, error) // contains filtered or unexported methods }
HeliumServer is the server API for Helium service. All implementations must embed UnimplementedHeliumServer for forward compatibility
type Helium_RegisterClient ¶
type Helium_RegisterClient interface { Recv() (*NodeEvent, error) grpc.ClientStream }
type Helium_RegisterServer ¶
type Helium_RegisterServer interface { Send(*NodeEvent) error grpc.ServerStream }
type NodeEvent ¶
type NodeEvent struct { // Types that are assignable to Event: // // *NodeEvent_SetupEvent // *NodeEvent_ComputeEvent Event isNodeEvent_Event `protobuf_oneof:"Event"` // contains filtered or unexported fields }
func (*NodeEvent) Descriptor
deprecated
func (*NodeEvent) GetComputeEvent ¶
func (x *NodeEvent) GetComputeEvent() *ComputeEvent
func (*NodeEvent) GetSetupEvent ¶
func (x *NodeEvent) GetSetupEvent() *SetupEvent
func (*NodeEvent) ProtoMessage ¶
func (*NodeEvent) ProtoMessage()
func (*NodeEvent) ProtoReflect ¶
func (x *NodeEvent) ProtoReflect() protoreflect.Message
type NodeEvent_ComputeEvent ¶
type NodeEvent_ComputeEvent struct {
ComputeEvent *ComputeEvent `protobuf:"bytes,2,opt,name=ComputeEvent,proto3,oneof"`
}
type NodeEvent_SetupEvent ¶
type NodeEvent_SetupEvent struct {
SetupEvent *SetupEvent `protobuf:"bytes,1,opt,name=SetupEvent,proto3,oneof"`
}
type NodeID ¶
type NodeID struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // contains filtered or unexported fields }
func (*NodeID) Descriptor
deprecated
func (*NodeID) ProtoMessage ¶
func (*NodeID) ProtoMessage()
func (*NodeID) ProtoReflect ¶
func (x *NodeID) ProtoReflect() protoreflect.Message
type ProtocolDescriptor ¶
type ProtocolDescriptor struct { ProtocolType ProtocolType `protobuf:"varint,1,opt,name=ProtocolType,proto3,enum=helium_proto.ProtocolType" json:"ProtocolType,omitempty"` Args map[string]string `` /* 149-byte string literal not displayed */ Aggregator *NodeID `protobuf:"bytes,3,opt,name=Aggregator,proto3" json:"Aggregator,omitempty"` Participants []*NodeID `protobuf:"bytes,4,rep,name=Participants,proto3" json:"Participants,omitempty"` Receivers []*NodeID `protobuf:"bytes,5,rep,name=Receivers,proto3" json:"Receivers,omitempty"` // contains filtered or unexported fields }
func (*ProtocolDescriptor) Descriptor
deprecated
func (*ProtocolDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolDescriptor.ProtoReflect.Descriptor instead.
func (*ProtocolDescriptor) GetAggregator ¶
func (x *ProtocolDescriptor) GetAggregator() *NodeID
func (*ProtocolDescriptor) GetArgs ¶
func (x *ProtocolDescriptor) GetArgs() map[string]string
func (*ProtocolDescriptor) GetParticipants ¶
func (x *ProtocolDescriptor) GetParticipants() []*NodeID
func (*ProtocolDescriptor) GetProtocolType ¶
func (x *ProtocolDescriptor) GetProtocolType() ProtocolType
func (*ProtocolDescriptor) GetReceivers ¶
func (x *ProtocolDescriptor) GetReceivers() []*NodeID
func (*ProtocolDescriptor) ProtoMessage ¶
func (*ProtocolDescriptor) ProtoMessage()
func (*ProtocolDescriptor) ProtoReflect ¶
func (x *ProtocolDescriptor) ProtoReflect() protoreflect.Message
func (*ProtocolDescriptor) Reset ¶
func (x *ProtocolDescriptor) Reset()
func (*ProtocolDescriptor) String ¶
func (x *ProtocolDescriptor) String() string
type ProtocolEvent ¶
type ProtocolEvent struct { Descriptor_ *ProtocolDescriptor `protobuf:"bytes,1,opt,name=Descriptor,proto3" json:"Descriptor,omitempty"` Type EventType `protobuf:"varint,2,opt,name=Type,proto3,enum=helium_proto.EventType" json:"Type,omitempty"` // contains filtered or unexported fields }
func (*ProtocolEvent) Descriptor
deprecated
func (*ProtocolEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolEvent.ProtoReflect.Descriptor instead.
func (*ProtocolEvent) GetDescriptor_ ¶
func (x *ProtocolEvent) GetDescriptor_() *ProtocolDescriptor
func (*ProtocolEvent) GetType ¶
func (x *ProtocolEvent) GetType() EventType
func (*ProtocolEvent) ProtoMessage ¶
func (*ProtocolEvent) ProtoMessage()
func (*ProtocolEvent) ProtoReflect ¶
func (x *ProtocolEvent) ProtoReflect() protoreflect.Message
func (*ProtocolEvent) Reset ¶
func (x *ProtocolEvent) Reset()
func (*ProtocolEvent) String ¶
func (x *ProtocolEvent) String() string
type ProtocolID ¶
type ProtocolID struct { ProtocolID string `protobuf:"bytes,1,opt,name=ProtocolID,proto3" json:"ProtocolID,omitempty"` // contains filtered or unexported fields }
func (*ProtocolID) Descriptor
deprecated
func (*ProtocolID) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolID.ProtoReflect.Descriptor instead.
func (*ProtocolID) GetProtocolID ¶
func (x *ProtocolID) GetProtocolID() string
func (*ProtocolID) ProtoMessage ¶
func (*ProtocolID) ProtoMessage()
func (*ProtocolID) ProtoReflect ¶
func (x *ProtocolID) ProtoReflect() protoreflect.Message
func (*ProtocolID) Reset ¶
func (x *ProtocolID) Reset()
func (*ProtocolID) String ¶
func (x *ProtocolID) String() string
type ProtocolType ¶
type ProtocolType int32
const ( ProtocolType_UNSPECIFIED ProtocolType = 0 ProtocolType_SKG ProtocolType = 1 // secret-key generation ProtocolType_CKG ProtocolType = 2 // public encryption-key generation ProtocolType_RKG_1 ProtocolType = 3 // first round of public relinearization-key generation ProtocolType_RKG ProtocolType = 4 // second round of public relinearization-key generation ProtocolType_RTG ProtocolType = 5 // public rotation-key generation ProtocolType_CKS ProtocolType = 6 // collective switching to collective secret-key ProtocolType_DEC ProtocolType = 7 // collective decryption ProtocolType_PCKS ProtocolType = 8 // collective switching to known public-key )
func (ProtocolType) Descriptor ¶
func (ProtocolType) Descriptor() protoreflect.EnumDescriptor
func (ProtocolType) Enum ¶
func (x ProtocolType) Enum() *ProtocolType
func (ProtocolType) EnumDescriptor
deprecated
func (ProtocolType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtocolType.Descriptor instead.
func (ProtocolType) Number ¶
func (x ProtocolType) Number() protoreflect.EnumNumber
func (ProtocolType) String ¶
func (x ProtocolType) String() string
func (ProtocolType) Type ¶
func (ProtocolType) Type() protoreflect.EnumType
type SessionID ¶
type SessionID struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*SessionID) Descriptor
deprecated
func (*SessionID) GetSessionId ¶
func (*SessionID) ProtoMessage ¶
func (*SessionID) ProtoMessage()
func (*SessionID) ProtoReflect ¶
func (x *SessionID) ProtoReflect() protoreflect.Message
type SetupEvent ¶
type SetupEvent struct { ProtocolEvent *ProtocolEvent `protobuf:"bytes,1,opt,name=ProtocolEvent,proto3" json:"ProtocolEvent,omitempty"` // contains filtered or unexported fields }
func (*SetupEvent) Descriptor
deprecated
func (*SetupEvent) Descriptor() ([]byte, []int)
Deprecated: Use SetupEvent.ProtoReflect.Descriptor instead.
func (*SetupEvent) GetProtocolEvent ¶
func (x *SetupEvent) GetProtocolEvent() *ProtocolEvent
func (*SetupEvent) ProtoMessage ¶
func (*SetupEvent) ProtoMessage()
func (*SetupEvent) ProtoReflect ¶
func (x *SetupEvent) ProtoReflect() protoreflect.Message
func (*SetupEvent) Reset ¶
func (x *SetupEvent) Reset()
func (*SetupEvent) String ¶
func (x *SetupEvent) String() string
type Share ¶
type Share struct { // contains filtered or unexported fields }
func (*Share) Descriptor
deprecated
func (*Share) GetMetadata ¶
func (x *Share) GetMetadata() *ShareMetadata
func (*Share) ProtoMessage ¶
func (*Share) ProtoMessage()
func (*Share) ProtoReflect ¶
func (x *Share) ProtoReflect() protoreflect.Message
type ShareMetadata ¶
type ShareMetadata struct { // contains filtered or unexported fields }
func (*ShareMetadata) Descriptor
deprecated
func (*ShareMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ShareMetadata.ProtoReflect.Descriptor instead.
func (*ShareMetadata) GetAggregateFor ¶
func (x *ShareMetadata) GetAggregateFor() []*NodeID
func (*ShareMetadata) GetProtocolID ¶
func (x *ShareMetadata) GetProtocolID() *ProtocolID
func (*ShareMetadata) GetProtocolType ¶
func (x *ShareMetadata) GetProtocolType() ProtocolType
func (*ShareMetadata) ProtoMessage ¶
func (*ShareMetadata) ProtoMessage()
func (*ShareMetadata) ProtoReflect ¶
func (x *ShareMetadata) ProtoReflect() protoreflect.Message
func (*ShareMetadata) Reset ¶
func (x *ShareMetadata) Reset()
func (*ShareMetadata) String ¶
func (x *ShareMetadata) String() string
type UnimplementedHeliumServer ¶
type UnimplementedHeliumServer struct { }
UnimplementedHeliumServer must be embedded to have forward compatible implementations.
func (UnimplementedHeliumServer) GetAggregationOutput ¶
func (UnimplementedHeliumServer) GetAggregationOutput(context.Context, *ProtocolDescriptor) (*AggregationOutput, error)
func (UnimplementedHeliumServer) GetCiphertext ¶
func (UnimplementedHeliumServer) GetCiphertext(context.Context, *CiphertextID) (*Ciphertext, error)
func (UnimplementedHeliumServer) PutCiphertext ¶
func (UnimplementedHeliumServer) PutCiphertext(context.Context, *Ciphertext) (*CiphertextID, error)
func (UnimplementedHeliumServer) Register ¶
func (UnimplementedHeliumServer) Register(*Void, Helium_RegisterServer) error
type UnsafeHeliumServer ¶
type UnsafeHeliumServer interface {
// contains filtered or unexported methods
}
UnsafeHeliumServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HeliumServer will result in compilation errors.
type Void ¶
type Void struct {
// contains filtered or unexported fields
}
MESSAGE DEFINITIONS
The following messages have counterparts in the Go implementation of the Helium service. See the godoc for more information on these messages.
func (*Void) Descriptor
deprecated
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) ProtoReflect ¶
func (x *Void) ProtoReflect() protoreflect.Message