Commit a40ca8b
committed
PM-40520 - Move seal/unseal logic onto SealedOpenOrgInviteData
Per PR review, RegistrationClient methods were orchestrating the crypto
and constructing the sealed struct field-by-field, breaking encapsulation
of the domain type. Crypto now lives on SealedOpenOrgInviteData::seal /
::unseal; the client methods are thin FFI wrappers.
Also splits the module by concern:
- open_org_invite.rs — domain types + crypto impls + round-trip tests
- serialization.rs — wire encoding + WASM ABI + wire/parse tests
- client.rs — FFI pair struct + thin RegistrationClient wrappers
SealedOpenOrgInviteData's envelope fields tightened from pub to pub(super)
since the client no longer needs field access. Folder renamed to
open_org_invite_crypto to satisfy clippy's module_inception check.
Wire format unchanged (pinned integration-test vector still passes).
Public API surface unchanged.1 parent e7a936f commit a40ca8b
8 files changed
Lines changed: 499 additions & 536 deletions
File tree
- crates/bitwarden-auth/src/registration
- open_org_invite_crypto
- open_org_invite
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 0 additions & 336 deletions
This file was deleted.
0 commit comments