switch to x/crypto/blake2b

parent b54991a0
......@@ -11,7 +11,7 @@ dependencies:
go get -u github.com/NebulousLabs/fastrand
go get -u github.com/NebulousLabs/merkletree
go get -u github.com/NebulousLabs/bolt
go get -u github.com/dchest/blake2b
go get -u golang.org/x/crypto/blake2b
# Module + Daemon Dependencies
go get -u github.com/NebulousLabs/entropy-mnemonics
go get -u github.com/NebulousLabs/go-upnp
......
......@@ -15,7 +15,7 @@ import (
"github.com/NebulousLabs/Sia/encoding"
"github.com/dchest/blake2b"
"golang.org/x/crypto/blake2b"
)
const (
......@@ -35,7 +35,8 @@ var (
// NewHash returns a blake2b 256bit hasher.
func NewHash() hash.Hash {
return blake2b.New256()
h, _ := blake2b.New256(nil) // cannot fail with nil argument
return h
}
// HashAll takes a set of objects as input, encodes them all using the encoding
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment