Skip to content

Commit 8fbe6e5

Browse files
committed
Derive keys for VMS from k256 key
1 parent 76a1081 commit 8fbe6e5

2 files changed

Lines changed: 209 additions & 117 deletions

File tree

guest-agent/rpc/proto/agent_rpc.proto

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ service DstackGuest {
3737
// Returns the derived key along with its TLS certificate chain.
3838
rpc GetTlsKey(GetTlsKeyArgs) returns (GetTlsKeyResponse) {}
3939

40-
// Derives a new ECDSA key with k256 EC curve.
40+
// Derives a new key.
4141
rpc GetKey(GetKeyArgs) returns (GetKeyResponse) {}
4242

4343
// Generates a TDX quote with given report data.
@@ -94,12 +94,14 @@ message GetTlsKeyResponse {
9494
repeated string certificate_chain = 2;
9595
}
9696

97-
// The request to derive a new ECDSA key with k256 EC curve
97+
// The request to derive a new key
9898
message GetKeyArgs {
9999
// Path to the key to derive
100100
string path = 1;
101101
// Purpose of the key
102102
string purpose = 2;
103+
// Algorithm of the key. Either `secp256k1` or `ed25519`. Defaults to `secp256k1`
104+
string algorithm = 3;
103105
}
104106

105107
// The response to a DeriveK256Key request
@@ -112,9 +114,9 @@ message DeriveK256KeyResponse {
112114

113115
// The response to a GetEthKey request
114116
message GetKeyResponse {
115-
// Derived k256 key
117+
// Derived key
116118
bytes key = 1;
117-
// Derived k256 signature chain
119+
// Derived signature chain
118120
repeated bytes signature_chain = 2;
119121
}
120122

0 commit comments

Comments
 (0)