zkprm

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Private

type Private struct {
	Lambda, Phi, P, Q *saferith.Nat
}

type Proof

type Proof struct {
	As, Zs [params.StatParam]*big.Int
}

func NewProof

func NewProof(private Private, hash *hash.Hash, public Public, pl *pool.Pool) *Proof

NewProof generates a proof that: s = t^lambda (mod N).

func (*Proof) IsValid

func (p *Proof) IsValid(public Public) bool

func (*Proof) Verify

func (p *Proof) Verify(public Public, hash *hash.Hash, pl *pool.Pool) bool

type Public

type Public struct {
	N    *saferith.Modulus
	S, T *saferith.Nat
}

Jump to

Keyboard shortcuts

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