Skip to content

Commit 69c1bef

Browse files
committed
added operatorID to creation of keyshare file
1 parent ba2decf commit 69c1bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/internal/state/share.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ func CreateKeyshareFile(ownerConfig api.OwnerConfig, signingOutput api.SigningOu
5454
operatorKey := make([]byte, base64.RawStdEncoding.EncodedLen(len(share.Identity.Public)))
5555
base64.RawStdEncoding.Encode(operatorKey, share.Identity.Public)
5656
operators[i] = operator{
57-
Id: uint32(i),
57+
Id: share.Identity.OperatorID,
5858
OperatorKey: operatorKey,
5959
}
60-
operatorIDs[i] = uint32(i)
60+
operatorIDs[i] = share.Identity.OperatorID
6161
publicKeys = append(publicKeys, share.Identity.Public...)
6262
encryptedShares = append(encryptedShares, share.EncryptedShare...)
6363
}

0 commit comments

Comments
 (0)