Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-kad-dht
Commits
b3f19c8b
Commit
b3f19c8b
authored
Oct 16, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move IDFromPubKey to peer pkg
parent
702efec2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
dht_test.go
dht_test.go
+1
-2
No files found.
dht_test.go
View file @
b3f19c8b
...
...
@@ -10,7 +10,6 @@ import (
ma
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
ci
"github.com/jbenet/go-ipfs/crypto"
spipe
"github.com/jbenet/go-ipfs/crypto/spipe"
inet
"github.com/jbenet/go-ipfs/net"
mux
"github.com/jbenet/go-ipfs/net/mux"
netservice
"github.com/jbenet/go-ipfs/net/service"
...
...
@@ -74,7 +73,7 @@ func makePeer(addr ma.Multiaddr) *peer.Peer {
}
p
.
PrivKey
=
sk
p
.
PubKey
=
pk
id
,
err
:=
spi
pe
.
IDFromPubKey
(
pk
)
id
,
err
:=
pe
er
.
IDFromPubKey
(
pk
)
if
err
!=
nil
{
panic
(
err
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment