Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dkg/pedersen/dkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ func processKey(ctx context.Context, config *Config, board *Board, key *kdkg.Dis

publicShares := make(map[int]tbls.PublicKey)

for i, oi := range oldShareIndices {
for _, oi := range oldShareIndices {
var pk tbls.PublicKey
copy(pk[:], oldShareRevMap[oi])
publicShares[i+1] = pk
publicShares[oi] = pk
}

return share.Share{
Expand Down
2 changes: 1 addition & 1 deletion dkg/protocol_removeoperators.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (p *removeOperatorsProtocol) PostInit(ctx context.Context, pctx *ProtocolCo
nodeIdx := slices.Index(newPeerIDs, pctx.ThisPeerID)
pctx.ThisNodeIdx = cluster.NodeIdx{
PeerIdx: nodeIdx,
ShareIdx: nodeIdx + 1,
ShareIdx: peerMap[pctx.ThisPeerID].ShareIdx,
}
pctx.SigExchanger = newExchanger(pctx.ThisNode, nodeIdx, newPeerIDs, []sigType{sigLock}, pctx.Config.Timeout)
}
Expand Down
Loading