paillier2pc

package
v0.0.0-...-f3f2e40 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paillier2PC

type Paillier2PC struct {

	// Q_nx, Q_ny are notary's shares of the EC public key
	Q_nx, Q_ny *big.Int

	// constant numbers
	Zero, One, Two, Three *big.Int
	// P is curve P-256's Field prime
	P *big.Int
	// contains filtered or unexported fields
}

Paillier2PC implements the notary's side of computing an EC point addition in 2PC

func (*Paillier2PC) Init

func (p *Paillier2PC) Init()

func (*Paillier2PC) Step1

func (p *Paillier2PC) Step1(payload []byte) ([]byte, []byte)

func (*Paillier2PC) Step2

func (p *Paillier2PC) Step2(payload []byte) []byte

func (*Paillier2PC) Step3

func (p *Paillier2PC) Step3(payload []byte) []byte

func (*Paillier2PC) Step4

func (p *Paillier2PC) Step4(payload []byte) []byte

final step

Jump to

Keyboard shortcuts

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