triple

package
v0.0.0-...-89ef835 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: ISC Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(mod *big.Int, shares []Share) bool

Types

type Share

type Share struct {
	ShareA *big.Int
	ShareB *big.Int
	ShareC *big.Int
}

A share of a Beaver multiplication triple

func EmptyShare

func EmptyShare() *Share

func NewTriple

func NewTriple(mod *big.Int, nServers int) []*Share

type Triple

type Triple struct {
	A *big.Int
	B *big.Int
	C *big.Int
}

A Beaver multiplication triple for the MPC multiplication.

func EmptyTriple

func EmptyTriple() *Triple

Jump to

Keyboard shortcuts

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