update clients' key package refs upon committing#2604
Conversation
f0a4f57 to
d73bb32
Compare
1bf77c2 to
b951773
Compare
b951773 to
f1e0b34
Compare
mdimjasevic
left a comment
There was a problem hiding this comment.
I think you're pretty much there. I left a few comments inlined.
|
Can you also add tests? It would be good to have one for the case when there's no key package in the update path and then one for the case when there is a key package. |
I'm not sure whether we can do this using the |
We're not there yet (or at least I haven't thought this through), but it would be nice if we didn't have to write an integration test for everything we do. With Galley polysemized, I think we ought to start thinking how to make testing easy without needing to reach for another integration test. For this particular scenario, perhaps it would be too much to construct by hand a binary representation of a commit so we can Not every commit has an update path - it is an optional field. |
Thanks for the pointer!
True and already acknowledged in code. 👍 |
|
I really think the PR should come with tests. One option is to see if OpenMLS supports explicitly leaving out/including an update path. Another one, which I've been doing in another PR, is to construct the payload directly in Haskell; sure, that's a bit tedious to do by hand until we get Paolo's serialisation PR merged, but it should be doable. And you can always cherry-pick from Paolo's branch. |
ea33455 to
63f5052
Compare
https://wearezeta.atlassian.net/browse/FS-878
The logic has been manually tested. Automated tests will be added/integrated by FS-797.
Checklist
changelog.d.