mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-13 11:00:10 +08:00
21 lines
264 B
Protocol Buffer
21 lines
264 B
Protocol Buffer
|
syntax = "proto2";
|
||
|
|
||
|
package crypto.pb;
|
||
|
|
||
|
enum KeyType {
|
||
|
RSA = 0;
|
||
|
Ed25519 = 1;
|
||
|
Secp256k1 = 2;
|
||
|
ECDSA = 3;
|
||
|
}
|
||
|
|
||
|
message PublicKey {
|
||
|
required KeyType Type = 1;
|
||
|
required bytes Data = 2;
|
||
|
}
|
||
|
|
||
|
message PrivateKey {
|
||
|
required KeyType Type = 1;
|
||
|
required bytes Data = 2;
|
||
|
}
|