mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
20 lines
279 B
Protocol Buffer
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;
|
|
} |