gitee.com/lh-her-team/common@v1.5.1/helper/libp2pcrypto/pb/crypto.proto (about)

     1  syntax = "proto2";
     2  
     3  package libp2pcrypto.pb;
     4  
     5  option go_package = "gitee.com/lh-her-team/common/helper/libp2pcrypto/pb";
     6  
     7  enum KeyType {
     8  	RSA = 0;
     9  	Ed25519 = 1;
    10  	Secp256k1 = 2;
    11  	ECDSA = 3;
    12  	SM2 = 4;
    13  }
    14  
    15  message PublicKey {
    16  	required KeyType Type = 1;
    17  	required bytes Data = 2;
    18  }
    19  
    20  message PrivateKey {
    21  	required KeyType Type = 1;
    22  	required bytes Data = 2;
    23  }