taurushq-io / multi-party-sig

Implementation of protocols for threshold signatures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChainKey is not saved at the end of Frost keygen

lucky1024 opened this issue · comments

ChainKey is not saved at the end of Frost keygen:

func (r *round3) Finalize(chan<- *round.Message) (round.Session, error) {
	ChainKey := types.EmptyRID()
	for _, j := range r.PartyIDs() {
		ChainKey.XOR(r.ChainKeys[j])
	}

The variable ChainKey is never used later.

https://github.com/taurusgroup/multi-party-sig/blob/4d84aafb57b437da1b933db9a265fb7ce4e7c138/protocols/frost/keygen/round3.go#L99C1-L103C3

The expected result: save ChainKey into TaprootConfig/Config.