mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-04-30 13:12:15 +00:00
15 lines
218 B
Protocol Buffer
15 lines
218 B
Protocol Buffer
|
enum KeyType {
|
||
|
RSA = 0;
|
||
|
Ed25519 = 1;
|
||
|
Secp256k1 = 2;
|
||
|
}
|
||
|
|
||
|
message PublicKey {
|
||
|
required KeyType Type = 1;
|
||
|
required bytes Data = 2;
|
||
|
}
|
||
|
|
||
|
message PrivateKey {
|
||
|
required KeyType Type = 1;
|
||
|
required bytes Data = 2;
|
||
|
}
|