Hash returns the hash representation of this share
(s kyber.HashFactory)
| 31 | |
| 32 | // Hash returns the hash representation of this share |
| 33 | func (p *PriShare) Hash(s kyber.HashFactory) []byte { |
| 34 | h := s.Hash() |
| 35 | _, _ = p.V.MarshalTo(h) |
| 36 | _ = binary.Write(h, binary.LittleEndian, p.I) |
| 37 | return h.Sum(nil) |
| 38 | } |
| 39 | |
| 40 | // PriPoly represents a secret sharing polynomial. |
| 41 | type PriPoly struct { |
no test coverage detected