sign

package
v0.0.0-...-05710c2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSignCommon

func StartSignCommon(taproot bool, result *keygen.Config, signers []party.ID, messageHash []byte) protocol.StartFunc

Types

type Signature

type Signature struct {
	// R is the commitment point.
	R curve.Point
	// contains filtered or unexported fields
}

Signature represents the result of a Schnorr signature.

This signature claims to satisfy:

z * G = R + H(R, Y, m) * Y

for a public key Y.

func (Signature) Verify

func (sig Signature) Verify(public curve.Point, m []byte) bool

Verify checks if a signature equation actually holds.

Note that m is the hash of a message, and not the message itself.

Jump to

Keyboard shortcuts

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