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

Method Hash

share/poly.go:33–38  ·  view source on GitHub ↗

Hash returns the hash representation of this share

(s kyber.HashFactory)

Source from the content-addressed store, hash-verified

31
32// Hash returns the hash representation of this share
33func (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.
41type PriPoly struct {

Callers 15

CheckTransactionFunction · 0.45
SetGroupSizeMethod · 0.45
UpdateRandomnessMethod · 0.45
DataReturnMethod · 0.45
RegisterGroupPubKeyMethod · 0.45
RegisterNewNodeMethod · 0.45
UnRegisterNodeMethod · 0.45
SignalRandomMethod · 0.45
SignalGroupFormationMethod · 0.45
SignalGroupDissolveMethod · 0.45
SignalBootstrapMethod · 0.45
SignalUnregisterMethod · 0.45

Calls 2

MarshalToMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected