eddsa

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(circuit *frontend.CS, sig SignatureGadget, msg *frontend.Constraint, pubKey PublicKeyGadget) error

Verify verifies an eddsa signature cf https://en.wikipedia.org/wiki/EdDSA

Types

type PublicKeyGadget

type PublicKeyGadget struct {
	A     twistededwards.PointGadget
	Curve twistededwards.EdCurveGadget
}

PublicKeyGadget stores an eddsa public key in a r1cs

type SignatureGadget

type SignatureGadget struct {
	R PublicKeyGadget
	S *frontend.Constraint
}

SignatureGadget stores a signature as a gadget

Jump to

Keyboard shortcuts

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