Page MenuHomePhabricator

[identity] check that prekeys are formatted correctly
ClosedPublic

Authored by varun on Sat, Apr 13, 11:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 8:10 AM
Unknown Object (File)
Sat, Apr 27, 4:26 AM
Unknown Object (File)
Sat, Apr 27, 3:35 AM
Unknown Object (File)
Sat, Apr 27, 1:24 AM
Unknown Object (File)
Mon, Apr 22, 3:57 PM
Unknown Object (File)
Sun, Apr 21, 5:40 PM
Unknown Object (File)
Sat, Apr 20, 3:28 PM
Unknown Object (File)
Thu, Apr 18, 5:21 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.Mon, Apr 15, 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.Mon, Apr 15, 1:36 AM
This revision is now accepted and ready to land.Thu, Apr 18, 12:00 AM