Documentation ¶
Index ¶
- Variables
- func CreateSharesShamir(input []*big.Int) ([][]*big.Int, error)
- func CsvToVec(file string) ([]*big.Int, []string, []float64, error)
- func CsvTxtToVec(csvTxt string) ([]*big.Int, []string, error)
- func DecVec(encVec string, pubKey, secKey []byte) ([]*big.Int, error)
- func DeleteShare(filePath string) error
- func DownloadShare(fileLink, filePath string) error
- func EncryptVec(input []*big.Int, pubKey []byte) (string, error)
- func FixIntToFloat(i int64) (x float64)
- func FloatToFixInt(x float64) (int64, error)
- func JoinSharesShamir(input [][]*big.Int) ([]*big.Int, error)
- func JoinSharesShamirFloat(input [][]*big.Int) []float64
- func NewUniformRandomVector(n int, max *big.Int) ([]*big.Int, error)
- func PrepareData(inputsLinks []string, inputVecs []string, inputCols [][]string, nodeId int, ...) (int, int, int, []string, string)
- func ReadShare(file string, pubKey, secKey []byte, nodeId int) ([]*big.Int, []string, error)
- func Readln(r *bufio.Reader) (string, error)
- func ReduceToCols(input []*big.Int, colsAll []string, val string) ([]*big.Int, []string, error)
- func ResultsToCsvText(vec []float64, cols []string, funcName string) (string, error)
- func SplitCsvFile(file, output string, pubKeys [][]byte) ([]float64, [][]*big.Int, []string, error)
- type VecEnc
Constants ¶
This section is empty.
Variables ¶
View Source
var MPCPrime, _ = new(big.Int).SetString("340282366920938463463374607431768211507", 10)
MPCPrime is the prime used in the chosen Shamir secret sharing protocol used in SCALE-MAMBA
Functions ¶
func CreateSharesShamir ¶
CreateSharesShamir is a helping function that splits a vector input into 3 random parts x_1, x_2, x_3, such that f(i) = x_i and f(0) = x, for a linear f
func DeleteShare ¶
func DownloadShare ¶
func FixIntToFloat ¶
func FloatToFixInt ¶
FloatToFixInt changes a float to a fix precision representation of a number used in SCALE-MAMBA
func JoinSharesShamirFloat ¶
func PrepareData ¶
func ReduceToCols ¶
func ResultsToCsvText ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.