sign

package
v0.0.0-...-0b3308b Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Schnorr

func Schnorr(suite abstract.Suite, private abstract.Scalar, msg []byte) ([]byte, error)

Schnorr creates a Schnorr signature from a msg and a private key. This signature can be verified with VerifySchnorr. It's also a valid EdDSA signature.

func VerifySchnorr

func VerifySchnorr(suite abstract.Suite, public abstract.Point, msg, sig []byte) error

VerifySchnorr verifies a given Schnorr signature. It returns nil iff the given signature is valid. NOTE: this signature scheme is malleable because the response's unmarshalling is done directly into a big.Int modulo (see nist.Int).

Types

This section is empty.

Jump to

Keyboard shortcuts

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