MCPcopy Create free account
hub / github.com/DOSNetwork/core / Hash

Method Hash

share/poly.go:291–296  ·  view source on GitHub ↗

Hash returns the hash representation of this share.

(s kyber.HashFactory)

Source from the content-addressed store, hash-verified

289
290// Hash returns the hash representation of this share.
291func (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.
299type PubPoly struct {

Callers

nothing calls this directly

Calls 2

MarshalToMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected