zk_qrdl

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, g *Statement, proof *Proof) bool

Types

type Agreed

type Agreed struct {
	N *big.Int
	// contains filtered or unexported fields
}

The prover and the verifier should have already agreed on N and h.

func NewAgreed

func NewAgreed(N *big.Int, h *big.Int) *Agreed

type Proof

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

func Prove

func Prove(tx *merlin.Transcript, pp *Agreed, witness *Witness, g *Statement) *Proof

type Statement

type Statement = big.Int

g

type Witness

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

func NewWitness

func NewWitness(alpha *big.Int) *Witness

Jump to

Keyboard shortcuts

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