Documentation ¶
Overview ¶
Package api implements a translation layer between the protobuf and internal Helium types.
Index ¶
- func GetCiphertext(ct *sessions.Ciphertext) (*pb.Ciphertext, error)
- func GetCircuitDesc(cd circuits.Descriptor) *pb.CircuitDescriptor
- func GetComputeEvent(event compute.Event) *pb.ComputeEvent
- func GetNodeEvent(event node.Event) *pb.NodeEvent
- func GetProtocolDesc(pd *protocols.Descriptor) *pb.ProtocolDescriptor
- func GetProtocolEvent(event protocols.Event) *pb.ProtocolEvent
- func GetSetupEvent(event setup.Event) *pb.SetupEvent
- func GetShare(s *protocols.Share) (*pb.Share, error)
- func ToCiphertext(apiCt *pb.Ciphertext) (*sessions.Ciphertext, error)
- func ToCircuitDesc(apiCd *pb.CircuitDescriptor) *circuits.Descriptor
- func ToComputeEvent(apiEvent *pb.ComputeEvent) compute.Event
- func ToNodeEvent(apiEvent *pb.NodeEvent) node.Event
- func ToProtocolDesc(apiPD *pb.ProtocolDescriptor) *protocols.Descriptor
- func ToProtocolEvent(apiEvent *pb.ProtocolEvent) protocols.Event
- func ToSetupEvent(apiEvent *pb.SetupEvent) setup.Event
- func ToShare(s *pb.Share) (protocols.Share, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCiphertext ¶
func GetCiphertext(ct *sessions.Ciphertext) (*pb.Ciphertext, error)
func GetCircuitDesc ¶
func GetCircuitDesc(cd circuits.Descriptor) *pb.CircuitDescriptor
func GetComputeEvent ¶
func GetComputeEvent(event compute.Event) *pb.ComputeEvent
func GetProtocolDesc ¶
func GetProtocolDesc(pd *protocols.Descriptor) *pb.ProtocolDescriptor
func GetProtocolEvent ¶
func GetProtocolEvent(event protocols.Event) *pb.ProtocolEvent
func GetSetupEvent ¶
func GetSetupEvent(event setup.Event) *pb.SetupEvent
func ToCiphertext ¶
func ToCiphertext(apiCt *pb.Ciphertext) (*sessions.Ciphertext, error)
func ToCircuitDesc ¶
func ToCircuitDesc(apiCd *pb.CircuitDescriptor) *circuits.Descriptor
func ToComputeEvent ¶
func ToComputeEvent(apiEvent *pb.ComputeEvent) compute.Event
func ToProtocolDesc ¶
func ToProtocolDesc(apiPD *pb.ProtocolDescriptor) *protocols.Descriptor
func ToProtocolEvent ¶
func ToProtocolEvent(apiEvent *pb.ProtocolEvent) protocols.Event
func ToSetupEvent ¶
func ToSetupEvent(apiEvent *pb.SetupEvent) setup.Event
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.