Perform Key Generation (Keygen)
masterUse the keygen.LocalParty to create secret shares without a trusted dealer.
Upon successful completion, the protocol sends save data through the endCh. This data must be persisted to secure storage.
If you did not pre-compute preParams, you can omit the last argument in keygen.NewLocalParty, but the library will compute them during the first round of the protocol.
// party := keygen.NewLocalParty(params, outCh, endCh, preParams)
party := keygen.NewLocalParty(params, outCh, endCh, preParams)
go func() {
err := party.Start()
// handle err ...
}()