Versions in this module Expand all Collapse all v0 v0.0.1 Oct 26, 2022 Changes in this version + func CorreOTReceive(ctxHash *hash.Hash, setup *CorreOTReceiveSetup, choices []byte) (*CorreOTReceiveMessage, *CorreOTReceiveResult) + func ExtendedOTReceive(ctxHash *hash.Hash, setup *CorreOTReceiveSetup, choices []byte) (*ExtendedOTReceiveMessage, *ExtendedOTReceiveResult) + func RandomOTSetupSend(hash *hash.Hash, group curve.Curve) (*RandomOTSetupSendMessage, *RandomOTSendSetup) + type AdditiveOTReceiveResult [][2]curve.Scalar + type AdditiveOTReceiveRound1Message struct + Msg *ExtendedOTReceiveMessage + type AdditiveOTReceiver struct + func NewAdditiveOTReceiver(ctxHash *hash.Hash, setup *CorreOTReceiveSetup, group curve.Curve, ...) *AdditiveOTReceiver + func (r *AdditiveOTReceiver) Round1() *AdditiveOTReceiveRound1Message + func (r *AdditiveOTReceiver) Round2(msg *AdditiveOTSendRound1Message) (AdditiveOTReceiveResult, error) + type AdditiveOTSendResult [][2]curve.Scalar + type AdditiveOTSendRound1Message struct + CombinedPads [][2][]byte + type AdditiveOTSender struct + func NewAdditiveOTSender(ctxHash *hash.Hash, setup *CorreOTSendSetup, batchSize int, ...) *AdditiveOTSender + func (r *AdditiveOTSender) Round1(msg *AdditiveOTReceiveRound1Message) (*AdditiveOTSendRound1Message, AdditiveOTSendResult, error) + type CorreOTReceiveMessage struct + U [params.OTParam][]byte + type CorreOTReceiveResult struct + type CorreOTReceiveSetup struct + type CorreOTSendResult struct + func CorreOTSend(ctxHash *hash.Hash, setup *CorreOTSendSetup, batchSize int, ...) (*CorreOTSendResult, error) + type CorreOTSendSetup struct + type CorreOTSetupReceiveRound1Message struct + Msg RandomOTSetupSendMessage + func EmptyCorreOTSetupReceiveRound1Message(group curve.Curve) *CorreOTSetupReceiveRound1Message + type CorreOTSetupReceiveRound2Message struct + Msgs [params.OTParam]RandomOTSendRound1Message + type CorreOTSetupReceiveRound3Message struct + Msgs [params.OTParam]RandomOTSendRound2Message + type CorreOTSetupReceiver struct + func NewCorreOTSetupReceiver(pl *pool.Pool, hash *hash.Hash, group curve.Curve) *CorreOTSetupReceiver + func (r *CorreOTSetupReceiver) Round1() *CorreOTSetupReceiveRound1Message + func (r *CorreOTSetupReceiver) Round2(msg *CorreOTSetupSendRound1Message) (*CorreOTSetupReceiveRound2Message, error) + func (r *CorreOTSetupReceiver) Round3(msg *CorreOTSetupSendRound2Message) (*CorreOTSetupReceiveRound3Message, *CorreOTReceiveSetup, error) + type CorreOTSetupSendRound1Message struct + Msgs [params.OTParam]RandomOTReceiveRound1Message + type CorreOTSetupSendRound2Message struct + Msgs [params.OTParam]RandomOTReceiveRound2Message + type CorreOTSetupSender struct + func NewCorreOTSetupSender(pl *pool.Pool, hash *hash.Hash) *CorreOTSetupSender + func (r *CorreOTSetupSender) Round1(msg *CorreOTSetupReceiveRound1Message) (*CorreOTSetupSendRound1Message, error) + func (r *CorreOTSetupSender) Round2(msg *CorreOTSetupReceiveRound2Message) *CorreOTSetupSendRound2Message + func (r *CorreOTSetupSender) Round3(msg *CorreOTSetupReceiveRound3Message) (*CorreOTSendSetup, error) + type ExtendedOTReceiveMessage struct + CorreMsg *CorreOTReceiveMessage + T fieldElement + X [params.OTBytes]byte + type ExtendedOTReceiveResult struct + type ExtendedOTSendResult struct + func ExtendedOTSend(ctxHash *hash.Hash, setup *CorreOTSendSetup, batchSize int, ...) (*ExtendedOTSendResult, error) + type MultiplyReceiveRound1Message struct + Msg *AdditiveOTReceiveRound1Message + type MultiplyReceiver struct + func NewMultiplyReceiver(ctxHash *hash.Hash, setup *CorreOTReceiveSetup, beta curve.Scalar) (*MultiplyReceiver, error) + func (r *MultiplyReceiver) EmptyMultiplySendRound1Message() *MultiplySendRound1Message + func (r *MultiplyReceiver) Round1() *MultiplyReceiveRound1Message + func (r *MultiplyReceiver) Round2(msg *MultiplySendRound1Message) (curve.Scalar, error) + type MultiplySendRound1Message struct + Msg *AdditiveOTSendRound1Message + RCheck []curve.Scalar + UCheck curve.Scalar + type MultiplySender struct + func NewMultiplySender(ctxHash *hash.Hash, setup *CorreOTSendSetup, alpha curve.Scalar) *MultiplySender + func (r *MultiplySender) Round1(msg *MultiplyReceiveRound1Message) (*MultiplySendRound1Message, curve.Scalar, error) + type RandomOTReceiever struct + func NewRandomOTReceiver(nonce []byte, result *RandomOTReceiveSetup, choice safenum.Choice) (out RandomOTReceiever) + func (r *RandomOTReceiever) Round1() (outMsg RandomOTReceiveRound1Message, err error) + func (r *RandomOTReceiever) Round2(msg *RandomOTSendRound1Message) (outMsg RandomOTReceiveRound2Message) + func (r *RandomOTReceiever) Round3(msg *RandomOTSendRound2Message) ([params.OTBytes]byte, error) + type RandomOTReceiveRound1Message struct + ABytes []byte + type RandomOTReceiveRound2Message struct + Response [params.OTBytes]byte + type RandomOTReceiveSetup struct + func RandomOTSetupReceive(hash *hash.Hash, msg *RandomOTSetupSendMessage) (*RandomOTReceiveSetup, error) + type RandomOTSendResult struct + Rand0 [params.OTBytes]byte + Rand1 [params.OTBytes]byte + type RandomOTSendRound1Message struct + Challenge [params.OTBytes]byte + type RandomOTSendRound2Message struct + Decommit0 [params.OTBytes]byte + Decommit1 [params.OTBytes]byte + type RandomOTSendSetup struct + type RandomOTSender struct + func NewRandomOTSender(nonce []byte, result *RandomOTSendSetup) (out RandomOTSender) + func (r *RandomOTSender) Round1(msg *RandomOTReceiveRound1Message) (outMsg RandomOTSendRound1Message, err error) + func (r *RandomOTSender) Round2(msg *RandomOTReceiveRound2Message) (outMsg RandomOTSendRound2Message, res RandomOTSendResult, err error) + type RandomOTSetupSendMessage struct + B curve.Point + BProof *zksch.Proof + func EmptyRandomOTSetupSendMessage(group curve.Curve) *RandomOTSetupSendMessage