// Evaluates lambda parameter for each decrypted share. See second figure in the
// "Share combining" paragraph in [DJK 10], section 5.2.
Evaluates lambda parameter for each decrypted share. See second figure in the
"Share combining" paragraph in [DJK 10], section 5.2.
// Evaluates lambda parameter for each decrypted share . See second figure in the // " Share combining " paragraph in [ DJK 10 ] section 5 . 2 .
func (tk *ThresholdPublicKey) computeLambda(share *PartialDecryption, shares []*PartialDecryption) *big.Int {
	lambda := tk.delta()
	for _, share2 := range shares {
		if share2.Id != share.Id {
			lambda = tk.updateLambda(share, share2, lambda)
		}
	}
	return lambda
}
func ( tk * ThresholdPublicKey ) computeLambda ( share * PartialDecryption , shares [ ] * PartialDecryption ) * big . Int { lambda := tk . delta ( ) for _ , share2 := range shares { if share2 . Id != share . Id { lambda = tk . updateLambda ( share , share2 , lambda ) } } return lambda }
Evaluates lambda parameter for each decrypted share.
Evaluates lambda parameter for each decrypted share .