Skip to content

Add unique identifier to MpzPass.#1660

Merged
davidz25 merged 1 commit intomainfrom
mpzpass-add-uuid
Mar 27, 2026
Merged

Add unique identifier to MpzPass.#1660
davidz25 merged 1 commit intomainfrom
mpzpass-add-uuid

Conversation

@davidz25
Copy link
Copy Markdown
Contributor

An unique identifier is needed so the wallet can check whether it has already imported a pass. Also put requirements on this identifier so it's strong enough to be used as an authentication token for updating the pass and add version and updateUrl as well to facilitate this. Spec out a simple update protocol but don't actually implement this yet since no remote issuer of Multipaz Passes currently exist. We may circle back and change that update protocol once we have some implementation experience.

Also make DocumentStore aware of this identifier through a new property Document.mpzPassId and make DocumentStore.importMpzPass use this reuse the existing Document if it exists.

Also updated the examples passes at https://apps.multipaz.org/mpzpass to have these new fields set.

Test: New unit tests.
Test: Manually tested by trying to import a pass twice.

@davidz25 davidz25 requested a review from sorotokin March 26, 2026 20:51
@davidz25 davidz25 force-pushed the mpzpass-add-uuid branch 4 times, most recently from 990c30a to 27dd858 Compare March 26, 2026 22:38
An unique identifier is needed so the wallet can check whether it has
already imported a pass. Also put requirements on this identifier so
it's strong enough to be used as an authentication token for updating
the pass and add `version` and `updateUrl` as well to facilitate
this. Spec out a simple update protocol but don't actually implement
this yet since no remote issuer of Multipaz Passes currently exist. We
may circle back and change that update protocol once we have some
implementation experience.

Also make `DocumentStore` aware of this identifier through a new
property `Document.mpzPassId` and make `DocumentStore.importMpzPass`
use this reuse the existing `Document` if it exists.

Also updated the examples passes at https://apps.multipaz.org/mpzpass
to have these new fields set.

Test: New unit tests.
Test: Manually tested by trying to import a pass twice.
Signed-off-by: David Zeuthen <zeuthen@google.com>
@davidz25 davidz25 merged commit e536ffb into main Mar 27, 2026
3 checks passed
@davidz25 davidz25 deleted the mpzpass-add-uuid branch March 27, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants