keypair

package
v0.0.0-...-04e8804 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JointSignAlice

func JointSignAlice(aliceKeypair Keypair, bobPubKey ed25519.PublicKey,
	noncePoints []ed25519.CurvePoint, msg []byte) ([]byte, error)

func JointSignBob

func JointSignBob(bobKeypair Keypair, alicePubKey ed25519.PublicKey,
	noncePoints []ed25519.CurvePoint, msg []byte) ([]byte, error)

func JointSignWithAdaptorAlice

func JointSignWithAdaptorAlice(aliceKeypair Keypair, bobPubKey ed25519.PublicKey,
	noncePoints []ed25519.CurvePoint, adaptorPubKey ed25519.CurvePoint, msg []byte) ([]byte, error)

func JointSignWithAdaptorBob

func JointSignWithAdaptorBob(bobKeypair Keypair, alicePubKey ed25519.PublicKey,
	noncePoints []ed25519.CurvePoint, adaptorPubKey ed25519.CurvePoint, msg []byte) ([]byte, error)

func VerifyBobsAdaptorSignature

func VerifyBobsAdaptorSignature(jointPrimeKeys []ed25519.PublicKey, jointPubKey ed25519.PublicKey,
	noncePoints []ed25519.CurvePoint, adaptorPubKey ed25519.CurvePoint, msg []byte, sig []byte) bool

Types

type Keypair

type Keypair struct {
	PubKey  ed25519.PublicKey
	PrivKey ed25519.PrivateKey
}

func Generate

func Generate() (Keypair, error)

Jump to

Keyboard shortcuts

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