mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
* 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
11 lines
153 B
Go
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[:]
|
|
}
|