Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
feat: forward crypto/pb
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo committed Sep 6, 2022
1 parent c7e6616 commit 54bf15b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions crypto/pb/forward.go
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
)

0 comments on commit 54bf15b

Please sign in to comment.