Documentation
¶
Overview ¶
Package castor implements a client to interact with _Carbyne Stack Castor_ services
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SPDZGfp provides the SPDZProtocol protocol definition following the Modulo a prime domain. SPDZGfp = SPDZProtocol{"SPDZ gfp", "p"} // SPDZGf2n provides the SPDZProtocol protocol definition following the GF(2^n) domain. SPDZGf2n = SPDZProtocol{"SPDZ gf2n_", "2"} )
View Source
var ( // BitGfp describes the Bits tuple type in the Mudulo a Prime domain. BitGfp = TupleType{"BIT_GFP", "Bits", SPDZGfp} // BitGf2n describes the Bits tuple type in the GF(2^n) domain. BitGf2n = TupleType{"BIT_GF2N", "Bits", SPDZGf2n} // InputMaskGfp describes the Inputs tuple type in the Mudulo a Prime domain. InputMaskGfp = TupleType{"INPUT_MASK_GFP", "Inputs", SPDZGfp} // InputMaskGf2n describes the Inputs tuple type in the GF(2^n) domain. InputMaskGf2n = TupleType{"INPUT_MASK_GF2N", "Inputs", SPDZGf2n} // InverseTupleGfp describes the Inverses tuple type in the Mudulo a Prime domain. InverseTupleGfp = TupleType{"INVERSE_TUPLE_GFP", "Inverses", SPDZGfp} // InverseTupleGf2n describes the Inverses tuple type in the GF(2^n) domain. InverseTupleGf2n = TupleType{"INVERSE_TUPLE_GF2N", "Inverses", SPDZGf2n} // SquareTupleGfp describes the Squares tuple type in the Mudulo a Prime domain. SquareTupleGfp = TupleType{"SQUARE_TUPLE_GFP", "Squares", SPDZGfp} // SquareTupleGf2n describes the Squares tuple type in the GF(2^n) domain. SquareTupleGf2n = TupleType{"SQUARE_TUPLE_GF2N", "Squares", SPDZGf2n} // MultiplicationTripleGfp describes the Triples tuple type in the Mudulo a Prime domain. MultiplicationTripleGfp = TupleType{"MULTIPLICATION_TRIPLE_GFP", "Triples", SPDZGfp} // MultiplicationTripleGf2n describes the Triples tuple type in the GF(2^n) domain. MultiplicationTripleGf2n = TupleType{"MULTIPLICATION_TRIPLE_GF2N", "Triples", SPDZGf2n} )
View Source
var SupportedSPDZProtocols = []SPDZProtocol{ SPDZGfp, SPDZGf2n, }
SupportedSPDZProtocols is a list of all SPDZProtocol supported by castor and ephemeral.
View Source
var SupportedTupleTypes = []TupleType{ BitGfp, BitGf2n, InputMaskGfp, InputMaskGf2n, InverseTupleGfp, InverseTupleGf2n, SquareTupleGfp, SquareTupleGf2n, MultiplicationTripleGfp, MultiplicationTripleGf2n, }
SupportedTupleTypes is a list of all tuple types supported by the castor client.
Functions ¶
This section is empty.
Types ¶
type AbstractClient ¶
type AbstractClient interface {
GetTuples(tupleCount int32, tupleType TupleType, requestID uuid.UUID) (*TupleList, error)
}
AbstractClient is an interface for castor tuple client.
type Client ¶
Client is a client for the Castor tuple storage service
type SPDZProtocol ¶
SPDZProtocol describes the protocol used for the MPC computation.
type Share ¶
type Share struct {
}
Share represents a single share of a tuple with its shared value and mac data.
type TupleList ¶
type TupleList struct {
Tuples []Tuple `json:"tuples"`
}
TupleList is a collection of a specific type of tuples.
type TupleType ¶
type TupleType struct {
Name string
PreprocessingName string
SpdzProtocol SPDZProtocol
}
TupleType describes a type of Tuples provided by Castor.
Click to show internal directories.
Click to hide internal directories.