This repository has been archived by the owner on Jan 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
key.go
47 lines (37 loc) · 1.85 KB
/
key.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Deprecated: This package was moved to github.com/libp2p/go-libp2p-testing/netutil
package testutil
import (
"testing"
tnet "github.com/libp2p/go-libp2p-testing/net"
"github.com/libp2p/go-libp2p-testing/netutil"
)
// TestBogusPrivateKey is a key used for testing (to avoid expensive keygen)
// Deprecated: use the corresponding type in github.com/libp2p/go-libp2p-testing/netutil.
type TestBogusPrivateKey = netutil.TestBogusPrivateKey
// TestBogusPublicKey is a key used for testing (to avoid expensive keygen)
// Deprecated: use the corresponding type in github.com/libp2p/go-libp2p-testing/netutil.
type TestBogusPublicKey = netutil.TestBogusPublicKey
// Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.
func RandTestBogusPrivateKey() (TestBogusPrivateKey, error) {
return netutil.RandTestBogusPrivateKey()
}
// Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.
func RandTestBogusPublicKey() (TestBogusPublicKey, error) {
return netutil.RandTestBogusPublicKey()
}
// Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.
func RandTestBogusPrivateKeyOrFatal(t *testing.T) TestBogusPrivateKey {
return netutil.RandTestBogusPrivateKeyOrFatal(t)
}
// Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.
func RandTestBogusPublicKeyOrFatal(t *testing.T) TestBogusPublicKey {
return netutil.RandTestBogusPublicKeyOrFatal(t)
}
// Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.
func RandTestBogusIdentity() (tnet.Identity, error) {
return netutil.RandTestBogusIdentity()
}
// Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.
func RandTestBogusIdentityOrFatal(t *testing.T) tnet.Identity {
return netutil.RandTestBogusIdentityOrFatal(t)
}