Page MenuHomePhabricator

[identity] check that prekeys are formatted correctly
ClosedPublic

Authored by varun on Apr 13 2024, 11:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 3:39 PM
Unknown Object (File)
Sun, Nov 24, 1:22 PM
Unknown Object (File)
Sun, Nov 3, 7:29 AM
Unknown Object (File)
Thu, Oct 31, 8:38 AM
Unknown Object (File)
Oct 12 2024, 10:04 PM
Unknown Object (File)
Oct 12 2024, 10:04 PM
Unknown Object (File)
Oct 12 2024, 10:04 PM
Unknown Object (File)
Oct 12 2024, 10:03 PM
Subscribers

Details

Summary

use the same helper function as in previous diff to make sure keys are formatted correctly

Depends on D11657

Test Plan

commtest

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek requested changes to this revision.Apr 15 2024, 1:36 AM
bartek added inline comments.
services/identity/src/database/device_list.rs
234–244 ↗(On Diff #39097)

This trait should be infallible - DeviceRow should always represent a valid DDB row.

Instead of doing this, I prefer moving this validation to DeviceRow::from_device_key_upload(), what do you think?

This revision now requires changes to proceed.Apr 15 2024, 1:36 AM
This revision is now accepted and ready to land.Apr 18 2024, 12:00 AM