mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-07-30 16:01:59 +00:00
18 lines
233 B
Protocol Buffer
18 lines
233 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
message Exchange {
|
|
optional bytes id = 1;
|
|
optional PublicKey pubkey = 2;
|
|
}
|
|
|
|
enum KeyType {
|
|
RSA = 0;
|
|
Ed25519 = 1;
|
|
Secp256k1 = 2;
|
|
ECDSA = 3;
|
|
}
|
|
|
|
message PublicKey {
|
|
KeyType Type = 1;
|
|
bytes Data = 2;
|
|
} |