mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 07:28:20 +08:00
crypto -> p2p/crypto
The crypto package moves into p2p. Nothing in it so far is ipfs specific; everything is p2p-general.
This commit is contained in:
@ -12,9 +12,9 @@ import (
|
||||
cmds "github.com/jbenet/go-ipfs/commands"
|
||||
config "github.com/jbenet/go-ipfs/config"
|
||||
core "github.com/jbenet/go-ipfs/core"
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
imp "github.com/jbenet/go-ipfs/importer"
|
||||
chunk "github.com/jbenet/go-ipfs/importer/chunk"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
repo "github.com/jbenet/go-ipfs/repo"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
|
@ -18,8 +18,8 @@ import (
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
secio "github.com/jbenet/go-ipfs/crypto/secio"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
secio "github.com/jbenet/go-ipfs/p2p/crypto/secio"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
)
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
"github.com/jbenet/go-ipfs/util/debugerror"
|
||||
)
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
b58 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58"
|
||||
|
||||
cmds "github.com/jbenet/go-ipfs/commands"
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
"github.com/jbenet/go-ipfs/p2p/peer"
|
||||
kb "github.com/jbenet/go-ipfs/routing/kbucket"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
|
||||
cmds "github.com/jbenet/go-ipfs/commands"
|
||||
core "github.com/jbenet/go-ipfs/core"
|
||||
crypto "github.com/jbenet/go-ipfs/crypto"
|
||||
nsys "github.com/jbenet/go-ipfs/namesys"
|
||||
crypto "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
)
|
||||
|
||||
|
@ -11,7 +11,6 @@ import (
|
||||
bstore "github.com/jbenet/go-ipfs/blocks/blockstore"
|
||||
bserv "github.com/jbenet/go-ipfs/blockservice"
|
||||
config "github.com/jbenet/go-ipfs/config"
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
diag "github.com/jbenet/go-ipfs/diagnostics"
|
||||
exchange "github.com/jbenet/go-ipfs/exchange"
|
||||
bitswap "github.com/jbenet/go-ipfs/exchange/bitswap"
|
||||
@ -22,6 +21,7 @@ import (
|
||||
namesys "github.com/jbenet/go-ipfs/namesys"
|
||||
inet "github.com/jbenet/go-ipfs/net"
|
||||
swarmnet "github.com/jbenet/go-ipfs/net/swarmnet"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
path "github.com/jbenet/go-ipfs/path"
|
||||
pin "github.com/jbenet/go-ipfs/pin"
|
||||
|
@ -7,11 +7,11 @@ import (
|
||||
syncds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync"
|
||||
"github.com/jbenet/go-ipfs/blocks/blockstore"
|
||||
blockservice "github.com/jbenet/go-ipfs/blockservice"
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
"github.com/jbenet/go-ipfs/exchange/offline"
|
||||
mdag "github.com/jbenet/go-ipfs/merkledag"
|
||||
nsys "github.com/jbenet/go-ipfs/namesys"
|
||||
"github.com/jbenet/go-ipfs/net/mock"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
path "github.com/jbenet/go-ipfs/path"
|
||||
dht "github.com/jbenet/go-ipfs/routing/dht"
|
||||
|
@ -14,9 +14,9 @@ import (
|
||||
proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
|
||||
|
||||
core "github.com/jbenet/go-ipfs/core"
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
chunk "github.com/jbenet/go-ipfs/importer/chunk"
|
||||
mdag "github.com/jbenet/go-ipfs/merkledag"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
ft "github.com/jbenet/go-ipfs/unixfs"
|
||||
uio "github.com/jbenet/go-ipfs/unixfs/io"
|
||||
ftpb "github.com/jbenet/go-ipfs/unixfs/pb"
|
||||
|
@ -3,7 +3,7 @@ package namesys
|
||||
import (
|
||||
"errors"
|
||||
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
)
|
||||
|
||||
// ErrResolveFailed signals an error when attempting to resolve.
|
||||
|
@ -1,7 +1,7 @@
|
||||
package namesys
|
||||
|
||||
import (
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
routing "github.com/jbenet/go-ipfs/routing"
|
||||
)
|
||||
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
|
||||
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
|
||||
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
pb "github.com/jbenet/go-ipfs/namesys/internal/pb"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
routing "github.com/jbenet/go-ipfs/routing"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
)
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
|
||||
|
||||
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
pb "github.com/jbenet/go-ipfs/namesys/internal/pb"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
routing "github.com/jbenet/go-ipfs/routing"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
)
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr-net"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
eventlog "github.com/jbenet/go-ipfs/util/eventlog"
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr-net"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
)
|
||||
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
msgio "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-msgio"
|
||||
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
secio "github.com/jbenet/go-ipfs/crypto/secio"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
secio "github.com/jbenet/go-ipfs/p2p/crypto/secio"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
errors "github.com/jbenet/go-ipfs/util/debugerror"
|
||||
)
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
|
||||
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||
)
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"io"
|
||||
"time"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
inet "github.com/jbenet/go-ipfs/net"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"container/list"
|
||||
"sync"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
inet "github.com/jbenet/go-ipfs/net"
|
||||
mux "github.com/jbenet/go-ipfs/net/services/mux"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
|
||||
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
inet "github.com/jbenet/go-ipfs/net"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
testutil "github.com/jbenet/go-ipfs/util/testutil"
|
||||
|
||||
|
@ -5,11 +5,11 @@ import (
|
||||
"math/rand"
|
||||
"sync"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
inet "github.com/jbenet/go-ipfs/net"
|
||||
ids "github.com/jbenet/go-ipfs/net/services/identify"
|
||||
mux "github.com/jbenet/go-ipfs/net/services/mux"
|
||||
relay "github.com/jbenet/go-ipfs/net/services/relay"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
|
||||
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||
|
@ -3,8 +3,8 @@ package swarm
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
conn "github.com/jbenet/go-ipfs/net/conn"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
|
||||
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||
|
@ -4,7 +4,7 @@ package net
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
|
||||
inet "github.com/jbenet/go-ipfs/net"
|
||||
|
@ -21,7 +21,7 @@ import (
|
||||
|
||||
proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
|
||||
|
||||
pb "github.com/jbenet/go-ipfs/crypto/internal/pb"
|
||||
pb "github.com/jbenet/go-ipfs/p2p/crypto/internal/pb"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package crypto_test
|
||||
|
||||
import (
|
||||
. "github.com/jbenet/go-ipfs/crypto"
|
||||
. "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
|
||||
"bytes"
|
||||
tu "github.com/jbenet/go-ipfs/util/testutil"
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
|
||||
|
||||
pb "github.com/jbenet/go-ipfs/crypto/internal/pb"
|
||||
pb "github.com/jbenet/go-ipfs/p2p/crypto/internal/pb"
|
||||
)
|
||||
|
||||
type RsaPrivateKey struct {
|
@ -15,7 +15,7 @@ import (
|
||||
|
||||
bfish "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.crypto/blowfish"
|
||||
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
)
|
||||
|
||||
// List of supported ECDH curves
|
@ -4,7 +4,7 @@ package secio
|
||||
import (
|
||||
"io"
|
||||
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
|
||||
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||
msgio "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-msgio"
|
@ -10,8 +10,8 @@ import (
|
||||
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||
msgio "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-msgio"
|
||||
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
pb "github.com/jbenet/go-ipfs/crypto/secio/internal/pb"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
pb "github.com/jbenet/go-ipfs/p2p/crypto/secio/internal/pb"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
eventlog "github.com/jbenet/go-ipfs/util/eventlog"
|
@ -9,7 +9,7 @@ import (
|
||||
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
|
||||
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
)
|
||||
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
. "github.com/jbenet/go-ipfs/peer"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
. "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
tu "github.com/jbenet/go-ipfs/util/testutil"
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"sync"
|
||||
|
||||
ic "github.com/jbenet/go-ipfs/crypto"
|
||||
ic "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
|
||||
ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
|
||||
dssync "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync"
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
|
||||
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
"github.com/jbenet/go-ipfs/p2p/peer"
|
||||
pb "github.com/jbenet/go-ipfs/routing/dht/pb"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
|
@ -2,7 +2,7 @@ package kbucket
|
||||
|
||||
import (
|
||||
"container/list"
|
||||
peer "github.com/jbenet/go-ipfs/peer"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
"sort"
|
||||
)
|
||||
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"sync"
|
||||
"testing"
|
||||
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"testing"
|
||||
|
||||
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
|
||||
ci "github.com/jbenet/go-ipfs/crypto"
|
||||
ci "github.com/jbenet/go-ipfs/p2p/crypto"
|
||||
peer "github.com/jbenet/go-ipfs/p2p/peer"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user