zk_r_pwr

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(tx *merlin.Transcript, pp *Agreed, c *Statement, proof *Proof) bool

Types

type Agreed

type Agreed struct {
	N0 *big.Int

	N *big.Int

	NN       *big.Int
	N_plus_1 *big.Int
	// contains filtered or unexported fields
}

The prover and the verifier should have already agreed on q, N0, g0, h0, N.

func NewAgreed

func NewAgreed(q *big.Int, N0 *big.Int, g0 *big.Int, h0 *big.Int, N *big.Int) *Agreed

type Proof

type Proof struct {
	C *big.Int

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

func Prove

func Prove(tx *merlin.Transcript, pp *Agreed, ws *Witness, c *Statement) *Proof

type Statement

type Statement = big.Int

c

type Witness

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

func NewWitness

func NewWitness(x *big.Int, r *big.Int) *Witness

Jump to

Keyboard shortcuts

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