mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 08:58:04 +01:00
Update KT search requests to include a value and maybe an unidentified access key
This commit is contained in:
@@ -48,8 +48,6 @@ message ConsistencyParameters {
|
||||
optional uint64 distinguished = 2;
|
||||
}
|
||||
|
||||
// TODO: add a `value` field so that the KT server can verify that the given search key is mapped
|
||||
// to the provided value.
|
||||
message SearchRequest {
|
||||
/**
|
||||
* The key to look up in the log tree.
|
||||
@@ -67,6 +65,16 @@ message SearchRequest {
|
||||
* The tree head size(s) to prove consistency against.
|
||||
*/
|
||||
ConsistencyParameters consistency = 3;
|
||||
/**
|
||||
* Clients need to prove that they know the search key to value mapping
|
||||
* to avoid the key transparency service leaking user data.
|
||||
* If the client is looking up the distinguished key, this field may be empty.
|
||||
*/
|
||||
optional bytes mapped_value = 4;
|
||||
/**
|
||||
* Clients should only provide the unidentified_access_key if the search key is a phone number.
|
||||
*/
|
||||
optional bytes unidentified_access_key = 5;
|
||||
}
|
||||
|
||||
message SearchResponse {
|
||||
|
||||
Reference in New Issue
Block a user