Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unique keypair per credential #307

Merged
merged 3 commits into from
Aug 9, 2024
Merged

Conversation

emlun
Copy link
Member

@emlun emlun commented Aug 8, 2024

Companion PR of:

This is "phase 1" of wwWallet/wallet-ecosystem#62.

This restructures the encrypted data contents from a flat set of attributes of a single key into a map of key identifiers to key attributes (key ID, DID, public key and wrapped private key), and removes the initial key generation on registration. Instead, createIdToken and generateOpenid4vciProof now generate a new key pair and add it to the encrypted data. Consequently, the encrypted data needs to be updated on the server after each such change. The stateless keystore module simply returns the updated encrypted data, and the stateful LocalStorageKeystore returns the updated encrypted data and a CommitCallback to invoke when the encrypted data has been successfully updated on the server. When called, the CommitCallback writes the new encrypted data to localStorage and the new encryption key to sessionStorage.

This depends on:

Base automatically changed from keystore-update-private-data to master August 9, 2024 15:35
@emlun emlun merged commit 7ffd8b4 into master Aug 9, 2024
4 checks passed
@emlun emlun deleted the credential-unique-keypair branch August 9, 2024 15:36
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