api

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package api implements a translation layer between the protobuf and internal Helium types.

Index

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 GetNodeEvent

func GetNodeEvent(event node.Event) *pb.NodeEvent

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 GetShare

func GetShare(s *protocols.Share) (*pb.Share, error)

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 ToNodeEvent

func ToNodeEvent(apiEvent *pb.NodeEvent) node.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

func ToShare

func ToShare(s *pb.Share) (protocols.Share, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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