schnorr

package
v0.0.0-...-ba0cd9c Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type CloverSchnorrShare

type CloverSchnorrShare struct {
	vss.Vs
	vss.Share
}

func (*CloverSchnorrShare) Bip340PublicKey

func (cs *CloverSchnorrShare) Bip340PublicKey() []byte

func (*CloverSchnorrShare) CompressedPublicKey

func (cs *CloverSchnorrShare) CompressedPublicKey() []byte

func (*CloverSchnorrShare) Id

func (cs *CloverSchnorrShare) Id() int32

func (*CloverSchnorrShare) MarshalJSON

func (cs *CloverSchnorrShare) MarshalJSON() ([]byte, error)

func (*CloverSchnorrShare) PublicKey

func (cs *CloverSchnorrShare) PublicKey() *ecdsa.PublicKey

func (*CloverSchnorrShare) ReadFromFile

func (cs *CloverSchnorrShare) ReadFromFile(id int32) error

func (*CloverSchnorrShare) UnmarshalJSON

func (p *CloverSchnorrShare) UnmarshalJSON(payload []byte) error

type SchnorrKeyGen

type SchnorrKeyGen struct {
	SessionId string
	*vss.Share
	// contains filtered or unexported fields
}

func NewSchnorrKeyGen

func NewSchnorrKeyGen(sessionId string, caCert *x509.Certificate, agentKey *ecdsa.PrivateKey, agentCerts map[int32]*x509.Certificate, id int32) SchnorrKeyGen

func (*SchnorrKeyGen) GetAgentCerts

func (kg *SchnorrKeyGen) GetAgentCerts() map[int32]*x509.Certificate

func (*SchnorrKeyGen) GetCertificate

func (kg *SchnorrKeyGen) GetCertificate() *x509.Certificate

func (*SchnorrKeyGen) GetCompressedPublicKey

func (kg *SchnorrKeyGen) GetCompressedPublicKey() []byte

func (*SchnorrKeyGen) GetPublicKey

func (kg *SchnorrKeyGen) GetPublicKey() *crypto.ECPoint

func (*SchnorrKeyGen) GetSecretShare

func (kg *SchnorrKeyGen) GetSecretShare() *CloverSchnorrShare

func (*SchnorrKeyGen) Id

func (kg *SchnorrKeyGen) Id() int32

func (*SchnorrKeyGen) Round1

initialize polynomial and simulated polynomial commit on the summation of two polynomial

func (*SchnorrKeyGen) Round2

func (*SchnorrKeyGen) Round3

func (*SchnorrKeyGen) WriteToFile

func (kg *SchnorrKeyGen) WriteToFile()

type SchnorrSigningCeremony

type SchnorrSigningCeremony struct {
	*CloverSchnorrShare
	Dkg *SchnorrKeyGen

	Round0 *thresholdagent.SchnorrRound0Msg
	// contains filtered or unexported fields
}

func NewSchnorrSigningCeremony

func NewSchnorrSigningCeremony(sessionId string, caCert *x509.Certificate, agentKey *ecdsa.PrivateKey, agentCerts map[int32]*x509.Certificate, share *CloverSchnorrShare) *SchnorrSigningCeremony

func (*SchnorrSigningCeremony) PublicKey

func (sc *SchnorrSigningCeremony) PublicKey() *crypto.ECPoint

func (*SchnorrSigningCeremony) R

func (*SchnorrSigningCeremony) Round1

func (*SchnorrSigningCeremony) Round2

func (*SchnorrSigningCeremony) Round3

func (*SchnorrSigningCeremony) Round4

Jump to

Keyboard shortcuts

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