ceremonyclient/node/consensus/data/fragmentation/hash.go
petricadaipegsp d1e65c1c92
Support frame fragmentation and dissemination (#396)
* Add clock frame fragment message

* Add clock frame fragment validation

* Add clock frame fragmentation utilities

* Add clock frame fragmentation message handling

* Report publication errors

* Publish info list after frame

* Add frame publish configuration

* Publish clock frame fragments

* Update BlossomSub dashboard

* Publish clock frame fragments in parallel
2024-12-02 16:25:10 -06:00

11 lines
153 B
Go

package fragmentation
import "crypto/sha256"
const hashSize = 32
func hash(b []byte) []byte {
var h [hashSize]byte = sha256.Sum256(b)
return h[:]
}