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
Click to show internal directories.
Click to hide internal directories.