INNER CODE UNIT · Go
func
taurushq-io/multi-party-sig · internal/elgamal/elgamal.go:36
func (c *Ciphertext) Valid() bool {
if c == nil || c.L == nil || c.L.IsIdentity() ||
c.M == nil || c.M.IsIdentity() {
return false
}
return true
}
func Empty(group curve.Curve) *Ciphertext {
return &Ciphertext{
L: group.NewPoint(),
M: group.NewPoint(),
}
}
func (c *Ciphertext) WriteTo(w io.Writer) (int64, error) {
var total int64
var n int