Skip to content

Commit

Permalink
break existing api for returning
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Dec 19, 2024
1 parent 5968ffc commit 5efabf8
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 455 deletions.
334 changes: 144 additions & 190 deletions pkg/api/v1/key_manager.pb.go

Large diffs are not rendered by default.

77 changes: 0 additions & 77 deletions pkg/api/v1/key_manager.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 0 additions & 37 deletions pkg/api/v1/key_manager_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 16 additions & 17 deletions proto/key_manager.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ service KeyManager {
rpc GenerateKeyPair(GenerateKeyPairRequest) returns (GenerateKeyPairResponse) {}
rpc ImportKey(ImportKeyRequest) returns (ImportKeyResponse) {}
rpc ListKeys(ListKeysRequest) returns (ListKeysResponse) {}
rpc GetPublicKeys(GetPublicKeysRequest) returns (GetPublicKeysResponse) {}
}

message GenerateKeyPairRequest {
Expand All @@ -19,14 +18,17 @@ message GenerateKeyPairRequest {
}

message GenerateKeyPairResponse {
// Public key hex of the generated keypair
string public_key = 1;
// G1 Public key hex of the generated keypair
string public_key_g1 = 1;

// Private key hex of the generated keypair
string private_key = 2;

// Mnemonic of the generated keypair
string mnemonic = 3;

// G2 Public key hex of the generated keypair
string public_key_g2 = 4;
}

message ImportKeyRequest {
Expand All @@ -38,28 +40,25 @@ message ImportKeyRequest {

// Password to encrypt the private key
string password = 3;

}

message ImportKeyResponse {
// Public key hex of the imported keypair
string public_key = 1;
}

message ListKeysRequest {}

message ListKeysResponse {
// List of public keys
repeated string public_keys = 1;
}

message GetPublicKeysRequest {
// G1 Public key hex of the imported keypair
string public_key = 1;
// G2 Public key hex of the imported keypair
string public_key_g2 = 2;
}

message GetPublicKeysResponse {
message PublicKey {
// G1 Public key
string public_key_g1 = 1;
// G2 Public key
string public_key_g2 = 2;
}

message ListKeysRequest {}

message ListKeysResponse {
// List of public keys
repeated PublicKey public_keys = 1;
}
Loading

0 comments on commit 5efabf8

Please sign in to comment.