musig2

package
v0.0.0-...-ac57357 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateSignatures

func AggregateSignatures(sigs ...kyber.Scalar) kyber.Scalar

func ComputeR

func ComputeR(msg []byte, RValues []kyber.Point, pubKeys ...kyber.Point) kyber.Point

func Curve

func Curve() suites.Suite

func SignMulti

func SignMulti(msg []byte, key *Key, nonces []*Key, R kyber.Point, RValues []kyber.Point, pubKeys ...kyber.Point) kyber.Scalar

func VerifySignature

func VerifySignature(msg []byte, sig *Signature, pubKeys ...kyber.Point) bool

Types

type Key

type Key struct {
	Priv kyber.Scalar
	Pub  kyber.Point
}

func NewKey

func NewKey() *Key

type Signature

type Signature struct {
	R kyber.Point
	S kyber.Scalar
}

func DecodeSignature

func DecodeSignature(sig []byte) (*Signature, error)

func Sign

func Sign(msg []byte, key *Key) *Signature

func (*Signature) Encode

func (s *Signature) Encode() []byte

Jump to

Keyboard shortcuts

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