20 lines
298 B
Protocol Buffer
20 lines
298 B
Protocol Buffer
syntax = "proto3";
|
|
package utilcrypto;
|
|
option go_package = "util/crypto/cryptoproto";
|
|
|
|
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;
|
|
} |