mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 15:04:10 +01:00
ircd:Ⓜ️ Add signing_key_update schema.
This commit is contained in:
parent
b26fe736a4
commit
d6e01f5a43
3 changed files with 24 additions and 0 deletions
|
@ -17,6 +17,7 @@ namespace ircd::m
|
|||
struct device_keys;
|
||||
struct device_list_update;
|
||||
struct cross_signing_key;
|
||||
struct signing_key_update;
|
||||
}
|
||||
|
||||
struct ircd::m::cross_signing_key
|
||||
|
@ -44,6 +45,25 @@ struct ircd::m::cross_signing_key
|
|||
using super_type::operator=;
|
||||
};
|
||||
|
||||
/// An EDU that lets servers push details to each other when one of their
|
||||
/// users updates their cross-signing keys.
|
||||
struct ircd::m::signing_key_update
|
||||
:json::tuple
|
||||
<
|
||||
/// Required. The user ID whose cross-signing keys have changed.
|
||||
json::property<name::user_id, json::string>,
|
||||
|
||||
/// Cross signing key
|
||||
json::property<name::master_key, json::object>,
|
||||
|
||||
/// Cross signing key
|
||||
json::property<name::self_signing_key, json::object>
|
||||
>
|
||||
{
|
||||
using super_type::tuple;
|
||||
using super_type::operator=;
|
||||
};
|
||||
|
||||
struct ircd::m::device_keys
|
||||
:json::tuple
|
||||
<
|
||||
|
|
|
@ -211,4 +211,6 @@ struct ircd::m::name
|
|||
static constexpr const char *const formatted_body {"formatted_body"};
|
||||
|
||||
static constexpr const char *const usage {"usage"};
|
||||
static constexpr const char *const master_key {"master_key"};
|
||||
static constexpr const char *const self_signing_key {"self_signing_key"};
|
||||
};
|
||||
|
|
|
@ -190,3 +190,5 @@ constexpr const char *const ircd::m::name::format;
|
|||
constexpr const char *const ircd::m::name::formatted_body;
|
||||
|
||||
constexpr const char *const ircd::m::name::usage;
|
||||
constexpr const char *const ircd::m::name::master_key;
|
||||
constexpr const char *const ircd::m::name::self_signing_key;
|
||||
|
|
Loading…
Reference in a new issue