Implemented: Envelope wrapper class + linter hacks for protobuf checks

This commit is contained in:
lla-dane
2025-07-10 12:41:22 +05:30
parent c8053417d5
commit 6431fb8788
7 changed files with 484 additions and 0 deletions

View File

@ -0,0 +1,22 @@
syntax = "proto3";
package libp2p.peer.pb.crypto;
option go_package = "github.com/libp2p/go-libp2p/core/crypto/pb";
enum KeyType {
RSA = 0;
Ed25519 = 1;
Secp256k1 = 2;
ECDSA = 3;
}
message PublicKey {
KeyType Type = 1;
bytes Data = 2;
}
message PrivateKey {
KeyType Type = 1;
bytes Data = 2;
}