feat(unseal): add unseal protocol support for user agents

This commit is contained in:
hdbg
2026-02-14 23:44:37 +01:00
parent 8263bc6b6f
commit 6b8f8c9ff7
9 changed files with 90 additions and 84 deletions

View File

@@ -2,13 +2,20 @@ syntax = "proto3";
package arbiter.unseal;
message UserAgentKeyRequest {}
import "google/protobuf/empty.proto";
message ServerKeyResponse {
message UnsealStart {}
message UnsealStartResponse {
bytes pubkey = 1;
}
message UserAgentSealedKey {
bytes sealed_key = 1;
bytes pubkey = 2;
bytes nonce = 3;
message UnsealEncryptedKey {
bytes key = 1;
}
enum UnsealResult {
UNSEAL_RESULT_UNSPECIFIED = 0;
UNSEAL_RESULT_SUCCESS = 1;
UNSEAL_RESULT_INVALID_KEY = 2;
UNSEAL_RESULT_UNBOOTSTRAPPED = 3;
}