schnorr

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(pf *Proof, X *curves.ECPoint) bool

Verify s*G = R + h*X

func VerifyWithId added in v0.3.1

func VerifyWithId(sessionId *big.Int, pf *Proof, X *curves.ECPoint) bool

VerifyWithId s*G = R + h*X

Types

type Proof

type Proof struct {
	R *curves.ECPoint
	S *big.Int
}

func Prove

func Prove(x *big.Int, X *curves.ECPoint) (*Proof, error)

Prove schnorr s = r + hx

func ProveWithId added in v0.3.1

func ProveWithId(sessionId, x *big.Int, X *curves.ECPoint) (*Proof, error)

ProveWithId schnorr s = r + hx

Jump to

Keyboard shortcuts

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