Example #1
0
func (e *EBlock) GetWelds() [][]byte {
	var answer [][]byte
	for _, entry := range e.Body.EBEntries {
		answer = append(answer, primitives.DoubleSha(append(entry.Bytes(), e.GetChainID().Bytes()...)))
	}
	return answer
}
Example #2
0
func (c *EBlock) GetHashOfChainID() []byte {
	return primitives.DoubleSha(c.GetChainID().Bytes())
}
Example #3
0
func (e *Entry) GetWeld() []byte {
	return primitives.DoubleSha(append(e.GetHash().Bytes(), e.GetChainID()...))
}