Changeset View
Changeset View
Standalone View
Standalone View
keyserver/addons/rust-node-addon/src/identity_client/register_user.rs
Show All 34 Lines | let device_key_upload = DeviceKeyUpload { | ||||
content_upload: Some(PreKey { | content_upload: Some(PreKey { | ||||
pre_key: content_prekey, | pre_key: content_prekey, | ||||
pre_key_signature: content_prekey_signature, | pre_key_signature: content_prekey_signature, | ||||
}), | }), | ||||
notif_upload: Some(PreKey { | notif_upload: Some(PreKey { | ||||
pre_key: notif_prekey, | pre_key: notif_prekey, | ||||
pre_key_signature: notif_prekey_signature, | pre_key_signature: notif_prekey_signature, | ||||
}), | }), | ||||
onetime_content_prekeys: content_one_time_keys, | one_time_content_prekeys: content_one_time_keys, | ||||
onetime_notif_prekeys: notif_one_time_keys, | one_time_notif_prekeys: notif_one_time_keys, | ||||
device_type: DeviceType::Keyserver.into(), | device_type: DeviceType::Keyserver.into(), | ||||
}; | }; | ||||
let registration_start_request = Request::new(RegistrationStartRequest { | let registration_start_request = Request::new(RegistrationStartRequest { | ||||
opaque_registration_request, | opaque_registration_request, | ||||
username, | username, | ||||
device_key_upload: Some(device_key_upload), | device_key_upload: Some(device_key_upload), | ||||
}); | }); | ||||
Show All 33 Lines |