go-libp2p-core/test/crypto.go
2022-08-19 11:21:45 +03:00

17 lines
520 B
Go

package test
import (
ci "github.com/libp2p/go-libp2p/core/crypto"
"github.com/libp2p/go-libp2p/core/test"
)
// Deprecated: use github.com/libp2p/go-libp2p/core/sec.RandTestKeyPair instead
func RandTestKeyPair(typ, bits int) (ci.PrivKey, ci.PubKey, error) {
return test.RandTestKeyPair(typ, bits)
}
// Deprecated: use github.com/libp2p/go-libp2p/core/sec.SeededTestKeyPair instead
func SeededTestKeyPair(typ, bits int, seed int64) (ci.PrivKey, ci.PubKey, error) {
return test.SeededTestKeyPair(typ, bits, seed)
}