zkprm

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 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 *safenum.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    *safenum.Modulus
	S, T *safenum.Nat
}

Jump to

Keyboard shortcuts

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