arnaucube
arnaucube/go-iden3-cryptoPublic Self-hosted repository
go-iden3-crypto/babyjub/helpers.go
babyjub/helpers.goRaw
 1package babyjub
 2
 3import (
 4	"github.com/dchest/blake512" // I have personally reviewed that this module doesn't do anything suspicious
 5)
 6
 7// Blake512 performs the blake-512 hash over the buffer m.  Note that this is
 8// the original blake from the SHA3 competition and not the new blake2 version.
 9func Blake512(m []byte) []byte {
10	h := blake512.New()
11	h.Write(m[:])
12	return h.Sum(nil)
13}