Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheFileRoot string = "prio-roots-cache"
View Source
var IntGen *big.Int
A generator g of a subgroup of Z*_p.
View Source
var IntGen2Order uint
The generator g generates a subgroup of order 2^IntGen2Order in Z*_p.
View Source
var IntModulus *big.Int
A modulus p.
Functions ¶
func GetRootsInv ¶
Types ¶
type GenPRG ¶
type GenPRG struct {
// contains filtered or unexported fields
}
A client uses a GenPRG to split values into shares (one share per server) using a PRG to compress the shares.
type ReplayPRG ¶
type ReplayPRG struct {
// contains filtered or unexported fields
}
A server uses a ReplayPRG to recover the shared values that the client sent it (in the form of a PRGHints struct).
func NewReplayPRG ¶
Produce a new ReplayPRG object for the given server/leader combo.
func (*ReplayPRG) Get ¶
Recover a secret-shared value that is shared in a field that uses modulus mod.
Click to show internal directories.
Click to hide internal directories.