Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartAnalyst ¶
StartAnalyst accept the configuration as in input and use SPADE to partially decrypt and get the results from a user's cipher
func StartServer ¶
func StartServer(config *Config)
Types ¶
type Config ¶
type Curator ¶
type Curator struct {
// contains filtered or unexported fields
}
Curator we assume that it is trusted
type DBHandler ¶
type DBHandler interface {
CreateUsersCipherTable() error
InsertUsersCipher(data *pb.UserReq) error
GetUserReqById(userId int64) (*pb.UserReq, error)
}
DBHandler is an interface to work with sqlite3 database API
func NewDBHandler ¶
type PBHandler ¶
type PBHandler interface {
ReadPublicParams(res *pb.PublicParamsResp, err error) (*big.Int, *big.Int, []*big.Int, error)
ReadDecryptionKey(response *pb.AnalystResp, err error) ([]*big.Int, [][]*big.Int, error)
}
func NewPBHandler ¶
func NewPBHandler() PBHandler
Click to show internal directories.
Click to hide internal directories.