This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package crypto_pb | ||
|
||
import pb "github.com/libp2p/go-libp2p/core/crypto/pb" | ||
|
||
var ( | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.ErrInvalidLengthCrypto instead | ||
ErrInvalidLengthCrypto = pb.ErrInvalidLengthCrypto | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.ErrIntOverflowCrypto instead | ||
ErrIntOverflowCrypto = pb.ErrIntOverflowCrypto | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.ErrUnexpectedEndOfGroupCrypto instead | ||
ErrUnexpectedEndOfGroupCrypto = pb.ErrUnexpectedEndOfGroupCrypto | ||
|
||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.KeyType_name instead | ||
KeyType_name = pb.KeyType_name | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.KeyType_value instead | ||
KeyType_value = pb.KeyType_value | ||
) | ||
|
||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.KeyType instead | ||
type KeyType = pb.KeyType | ||
|
||
const ( | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.KeyType_RSA instead | ||
KeyType_RSA pb.KeyType = pb.KeyType_RSA | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.KeyType_Ed25519 instead | ||
KeyType_Ed25519 pb.KeyType = pb.KeyType_Ed25519 | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.KeyType_Secp256k1 instead | ||
KeyType_Secp256k1 pb.KeyType = pb.KeyType_Secp256k1 | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.KeyType_ECDSA instead | ||
KeyType_ECDSA pb.KeyType = pb.KeyType_ECDSA | ||
) | ||
|
||
type ( | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.PrivateKey instead | ||
PrivateKey = pb.PrivateKey | ||
// DEPRECATED use github.com/libp2p/go-libp2p/core/crypto/pb.PublicKey instead | ||
PublicKey = pb.PublicKey | ||
) |