[ledger] Household: profile.named, household.sharing_set, member.named, subscriptions.shared; shared_names sends only service keys; v0.3.0

This commit is contained in:
2026-11-04 16:17:14 +01:00
parent 11a4070151
commit 235f290412
8 changed files with 212 additions and 5 deletions
+9
View File
@@ -19,6 +19,10 @@ is a log of its own (one MLS group): its members see exactly what was put into i
| `capture.token_added` / `capture.token_revoked` | personal | a phone's capture token: only its SHA-256 (`token`), a `name` and the `kind` (`iphone`, `android`). The token itself lives in Custos |
| `share.link_created` | personal | a share link for one person of one split: only the SHA-256 of the link token, `split`, `person`, `expires` |
| `account.set` | personal | the account for QR Platba (`iban`, `name`); the log is encrypted everywhere it is stored |
| `profile.named` | personal | the name you show to the members of your shared budgets (1–40 characters) *(v0.3.0)* |
| `household.sharing_set` | personal | `budget, on`: share your subscription names with this shared budget, or stop. Rejected for the default budget or an unknown one *(v0.3.0)* |
| `member.named` | shared budget | `budget, name`: what its author is called there. The latest per author counts *(v0.3.0)* |
| `subscriptions.shared` | shared budget | `budget, names`: the service keys of every subscription its author still pays (at most 100, each 1–40 characters, no repeats). The latest per author replaces the earlier; `[]` withdraws them *(v0.3.0)* |
`apply()` stays total: anything that does not fit is recorded in `state.rejected` with the reason.
@@ -73,3 +77,8 @@ synthetic templates that live only in the tests.
`household_duplicates(&[(member, names)])`: the subscription merchant keys two or more members share, each
with its members. It runs only on names members chose to share into the household group (opt-in, asked once).
Nobody's names are read without that.
`shared_names(state, today)` *(v0.3.0)* is what a member who opted in sends: the **service key** (the first word
of the merchant key, at least three letters) of every subscription they still pay (active, or charged after a
cancel), sorted, at most 100. Only the key leaves: `PAYPAL *SPOTIFY 4029357733` is shared as `spotify`, never
with its merchant text, reference or amount.