diff --git a/crypto/vss/feldman_vss.go b/crypto/vss/feldman_vss.go index 74d549dc..e0a8478f 100644 --- a/crypto/vss/feldman_vss.go +++ b/crypto/vss/feldman_vss.go @@ -93,7 +93,7 @@ func Create(ec elliptic.Curve, threshold int, secret *big.Int, indexes []*big.In } func (share *Share) Verify(ec elliptic.Curve, threshold int, vs Vs) bool { - if share.Threshold != threshold || vs == nil { + if share.Threshold != threshold || vs == nil || len(vs) != threshold { return false } var err error