aggsig

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregatePartialSignatures

func AggregatePartialSignatures(context *gost3410.Context, rawPartialSignatures [][]byte, sumNonces *PublicKey) (signature []byte, err error)

func SignPartial

func SignPartial(
	context *gost3410.Context,
	rawPrivateKey []byte,
	nonce []byte,
	sumNonces *PublicKey,
	msg []byte,
) (
	signature []byte,
	err error,
)

func Verify

func Verify(context *gost3410.Context, signature []byte, publicKey *PublicKey, msg []byte) (correct bool, err error)

func VerifyPartial

func VerifyPartial(context *gost3410.Context, signature []byte, publicKey *PublicKey, publicNonce *PublicKey, msg []byte) (correct bool, err error)

Types

type PrivateKey

type PrivateKey struct {
	*big.Int
}

func NewPrivateKey

func NewPrivateKey(context *gost3410.Context, raw []byte) (privateKey *PrivateKey, err error)

func (*PrivateKey) PublicKey

func (prv *PrivateKey) PublicKey(context *gost3410.Context) (*PublicKey, error)

type PublicKey

type PublicKey struct {
	curve.Point
}

func NewPublicKey

func NewPublicKey(context *gost3410.Context, rawPrivateKey []byte) (publicKey *PublicKey, err error)

func SumPublicKeys

func SumPublicKeys(context *gost3410.Context, publicKeys []*PublicKey) (sum *PublicKey, err error)

Jump to

Keyboard shortcuts

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