py-libp2p/libp2p/crypto/pb/crypto.proto
2019-08-14 09:00:39 -07:00

20 lines
279 B
Protocol Buffer

syntax = "proto2";
package crypto.pb;
enum KeyType {
RSA = 0;
Ed25519 = 1;
Secp256k1 = 2;
ECDSA = 3;
}
message PublicKey {
required KeyType key_type = 1;
required bytes data = 2;
}
message PrivateKey {
required KeyType key_type = 1;
required bytes data = 2;
}