mta_paillier

package
v0.0.0-...-35ce414 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Param

type Param struct {
	N0 *big.Int

	N *big.Int
	// contains filtered or unexported fields
}

type Receiver

type Receiver struct {
	// contains filtered or unexported fields
}

func NewReceiver

func NewReceiver(curve *curves.Curve, p *big.Int, q *big.Int) *Receiver

func (*Receiver) Init

func (receiver *Receiver) Init(b curves.Scalar) *Round1Output

func (*Receiver) Multiply

func (receiver *Receiver) Multiply(round2Output *Round2Output) curves.Scalar

func (*Receiver) SetupDone

func (receiver *Receiver) SetupDone(statement SetupStatement, proof SetupProof)

func (*Receiver) SetupInit

func (receiver *Receiver) SetupInit() (SetupStatement, SetupProof)

type Round1Output

type Round1Output struct {
	// contains filtered or unexported fields
}

type Round2Output

type Round2Output struct {
	// contains filtered or unexported fields
}

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

func NewSender

func NewSender(curve *curves.Curve, p *big.Int, q *big.Int) *Sender

func (*Sender) SetupUpdate

func (sender *Sender) SetupUpdate(statement SetupStatement, proof SetupProof) (SetupStatement, SetupProof)

func (*Sender) Update

func (sender *Sender) Update(a curves.Scalar, round1Output *Round1Output) (curves.Scalar, *Round2Output)

type SetupProof

type SetupProof struct {
	// contains filtered or unexported fields
}

type SetupStatement

type SetupStatement struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
zk
qr
r_p

Jump to

Keyboard shortcuts

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