mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 09:58:13 +01:00
key transparency: add distinguished key endpoint
This commit is contained in:
@@ -15,6 +15,13 @@ package kt_query;
|
||||
* to look up and monitor search keys.
|
||||
*/
|
||||
service KeyTransparencyQueryService {
|
||||
/**
|
||||
* An endpoint used by clients to retrieve the most recent distinguished tree
|
||||
* head, which should be used to derive consistency parameters for
|
||||
* subsequent Search and Monitor requests. It should be the first key
|
||||
* transparency RPC a client calls.
|
||||
*/
|
||||
rpc Distinguished(DistinguishedRequest) returns (SearchResponse) {}
|
||||
/**
|
||||
* An endpoint used by clients to search for a given key in the transparency log.
|
||||
* The server returns proof that the search key exists in the log.
|
||||
@@ -48,6 +55,19 @@ message ConsistencyParameters {
|
||||
optional uint64 distinguished = 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* DistinguishedRequest looks up the most recent distinguished key in the
|
||||
* transparency log.
|
||||
*/
|
||||
message DistinguishedRequest {
|
||||
/**
|
||||
* The tree size of the client's last verified distinguished request. With the
|
||||
* exception of a client's very first request, this field should always be
|
||||
* set.
|
||||
*/
|
||||
optional uint64 last = 1;
|
||||
}
|
||||
|
||||
message SearchRequest {
|
||||
/**
|
||||
* The key to look up in the log tree.
|
||||
|
||||
Reference in New Issue
Block a user