schnorr

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ScalarLength = 32

Variables

View Source
var (
	ErrInvalidSignature = errors.New("invalid signature")
	ErrInvalidPublicKey = errors.New("invalid public key")
)

Functions

func DeterministicNonce

func DeterministicNonce(scalar []byte, messageHash [sha256.Size]byte) []byte

DeterministicNonce implements RFC 6979, but only for P256/SHA256.

func Sign

func Sign(skey *ecdh.PrivateKey, message []byte) ([]byte, error)

func Verify

func Verify(publicKeyBytes, message, signature []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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