INNER CODE UNIT · Go

Empty

taurushq-io/multi-party-sig · internal/elgamal/elgamal.go:44

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

	buf, err := c.L.MarshalBinary()
	if err != nil {
		return 0, err
	}
	n, err = w.Write(buf)
	total += int64(n)
	if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…