Hash returns the hash representation of this share.
(s kyber.HashFactory)
| 289 | |
| 290 | // Hash returns the hash representation of this share. |
| 291 | func (p *PubShare) Hash(s kyber.HashFactory) []byte { |
| 292 | h := s.Hash() |
| 293 | _, _ = p.V.MarshalTo(h) |
| 294 | _ = binary.Write(h, binary.LittleEndian, p.I) |
| 295 | return h.Sum(nil) |
| 296 | } |
| 297 | |
| 298 | // PubPoly represents a public commitment polynomial to a secret sharing polynomial. |
| 299 | type PubPoly struct { |