Skip to content

Commit

Permalink
Merge pull request #32 from libp2p/dep/faster-sha
Browse files Browse the repository at this point in the history
dep: use a faster sha256 library
  • Loading branch information
Stebalien authored May 24, 2019
2 parents 80d3b47 + 9b606fd commit 509f053
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ require (
github.com/libp2p/go-libp2p-peer v0.0.1
github.com/libp2p/go-libp2p-peerstore v0.0.1
github.com/libp2p/go-testutil v0.0.1
github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16
)
2 changes: 1 addition & 1 deletion keyspace/xor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package keyspace

import (
"bytes"
"crypto/sha256"
"math/big"
"math/bits"

u "github.com/ipfs/go-ipfs-util"
sha256 "github.com/minio/sha256-simd"
)

// XORKeySpace is a KeySpace which:
Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package kbucket

import (
"bytes"
"crypto/sha256"
"errors"

u "github.com/ipfs/go-ipfs-util"
ks "github.com/libp2p/go-libp2p-kbucket/keyspace"
peer "github.com/libp2p/go-libp2p-peer"
sha256 "github.com/minio/sha256-simd"
)

// Returned if a routing table query returns no results. This is NOT expected
Expand Down

0 comments on commit 509f053

Please sign in to comment.