Documentation ¶
Index ¶
- func FilterRound1(id int32, roundx []*thresholdagent.SchnorrRound1Msg) []*thresholdagent.SchnorrRound1Msg
- func FilterRound2(id int32, roundx [][]*thresholdagent.SchnorrRound2Msg) []*thresholdagent.SchnorrRound2Msg
- func FilterRound3(id int32, roundx []*thresholdagent.SchnorrRound3Msg) []*thresholdagent.SchnorrRound3Msg
- type CloverSchnorrShare
- func (cs *CloverSchnorrShare) Bip340PublicKey() []byte
- func (cs *CloverSchnorrShare) CompressedPublicKey() []byte
- func (cs *CloverSchnorrShare) Id() int32
- func (cs *CloverSchnorrShare) MarshalJSON() ([]byte, error)
- func (cs *CloverSchnorrShare) PublicKey() *ecdsa.PublicKey
- func (cs *CloverSchnorrShare) ReadFromFile(id int32) error
- func (p *CloverSchnorrShare) UnmarshalJSON(payload []byte) error
- type SchnorrKeyGen
- func (kg *SchnorrKeyGen) GetAgentCerts() map[int32]*x509.Certificate
- func (kg *SchnorrKeyGen) GetCertificate() *x509.Certificate
- func (kg *SchnorrKeyGen) GetCompressedPublicKey() []byte
- func (kg *SchnorrKeyGen) GetPublicKey() *crypto.ECPoint
- func (kg *SchnorrKeyGen) GetSecretShare() *CloverSchnorrShare
- func (kg *SchnorrKeyGen) Id() int32
- func (kg *SchnorrKeyGen) Round1(round0 *thresholdagent.SchnorrRound0Msg) (*thresholdagent.SchnorrRound1Msg, error)
- func (kg *SchnorrKeyGen) Round2(round1s ...*thresholdagent.SchnorrRound1Msg) ([]*thresholdagent.SchnorrRound2Msg, error)
- func (kg *SchnorrKeyGen) Round3(round2s ...*thresholdagent.SchnorrRound2Msg) (*thresholdagent.SchnorrRound3Msg, error)
- func (kg *SchnorrKeyGen) WriteToFile()
- type SchnorrSigningCeremony
- func (sc *SchnorrSigningCeremony) PublicKey() *crypto.ECPoint
- func (sc *SchnorrSigningCeremony) R() *crypto.ECPoint
- func (sc *SchnorrSigningCeremony) Round1(round0 *thresholdagent.SchnorrRound0Msg) (*thresholdagent.SchnorrRound1Msg, error)
- func (sc *SchnorrSigningCeremony) Round2(round1 ...*thresholdagent.SchnorrRound1Msg) ([]*thresholdagent.SchnorrRound2Msg, error)
- func (sc *SchnorrSigningCeremony) Round3(round2 ...*thresholdagent.SchnorrRound2Msg) (*thresholdagent.SchnorrRound3Msg, error)
- func (sc *SchnorrSigningCeremony) Round4(round3 ...*thresholdagent.SchnorrRound3Msg) (*thresholdagent.SchnorrSignature, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterRound1 ¶
func FilterRound1(id int32, roundx []*thresholdagent.SchnorrRound1Msg) []*thresholdagent.SchnorrRound1Msg
func FilterRound2 ¶
func FilterRound2(id int32, roundx [][]*thresholdagent.SchnorrRound2Msg) []*thresholdagent.SchnorrRound2Msg
func FilterRound3 ¶
func FilterRound3(id int32, roundx []*thresholdagent.SchnorrRound3Msg) []*thresholdagent.SchnorrRound3Msg
Types ¶
type CloverSchnorrShare ¶
type CloverSchnorrShare struct {}
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 // 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 ¶
func (kg *SchnorrKeyGen) Round1(round0 *thresholdagent.SchnorrRound0Msg) (*thresholdagent.SchnorrRound1Msg, error)
initialize polynomial and simulated polynomial commit on the summation of two polynomial
func (*SchnorrKeyGen) Round2 ¶
func (kg *SchnorrKeyGen) Round2(round1s ...*thresholdagent.SchnorrRound1Msg) ([]*thresholdagent.SchnorrRound2Msg, error)
func (*SchnorrKeyGen) Round3 ¶
func (kg *SchnorrKeyGen) Round3(round2s ...*thresholdagent.SchnorrRound2Msg) (*thresholdagent.SchnorrRound3Msg, error)
func (*SchnorrKeyGen) WriteToFile ¶
func (kg *SchnorrKeyGen) WriteToFile()
type SchnorrSigningCeremony ¶
type SchnorrSigningCeremony struct { 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 (sc *SchnorrSigningCeremony) R() *crypto.ECPoint
func (*SchnorrSigningCeremony) Round1 ¶
func (sc *SchnorrSigningCeremony) Round1(round0 *thresholdagent.SchnorrRound0Msg) (*thresholdagent.SchnorrRound1Msg, error)
func (*SchnorrSigningCeremony) Round2 ¶
func (sc *SchnorrSigningCeremony) Round2(round1 ...*thresholdagent.SchnorrRound1Msg) ([]*thresholdagent.SchnorrRound2Msg, error)
func (*SchnorrSigningCeremony) Round3 ¶
func (sc *SchnorrSigningCeremony) Round3(round2 ...*thresholdagent.SchnorrRound2Msg) (*thresholdagent.SchnorrRound3Msg, error)
func (*SchnorrSigningCeremony) Round4 ¶
func (sc *SchnorrSigningCeremony) Round4(round3 ...*thresholdagent.SchnorrRound3Msg) (*thresholdagent.SchnorrSignature, error)
Click to show internal directories.
Click to hide internal directories.