mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 16:21:39 +00:00
Instead of relying on `protoc` and buildscripts, we generate the bindings using `pb-rs` and version them within our codebase. This makes for a better IDE integration, a faster build and an easier use of `rust-libp2p` because we don't force the `protoc` dependency onto them. Resolves #3024. Pull-Request: #3312.
21 lines
273 B
Protocol Buffer
21 lines
273 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
package keys_proto;
|
|
|
|
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;
|
|
}
|