Skip to content

Add encrypted-notes-dapp example based on vetKD - #569

Merged
viviveevee merged 4 commits into
masterfrom
franzstefan/add-enc-notes-vetkd-example
Jul 11, 2023
Merged

Add encrypted-notes-dapp example based on vetKD#569
viviveevee merged 4 commits into
masterfrom
franzstefan/add-enc-notes-vetkd-example

Conversation

@fspreiss

@fspreiss fspreiss commented Jul 10, 2023

Copy link
Copy Markdown
Contributor

Adds a copy of the encrypted-notes-dapp example, adapted to use the proposed vetKD feature.

In particular, instead of creating a principal-specific AES key and syncing it across devices (by means of device-specific RSA keys), the notes are encrypted with an AES key that is derived (directly in the browser) from a principal-specific vetKey obtained from the backend canister (in encrypted form, using an ephemeral transport key), which itself obtains it from the vetKD system API. This way, there is no need for any device management in the dapp.

The difference between the original encrypted-notes-dapp and the this one here can be seen in #561.

Note the Disclaimer in the README.md.

Disclaimer

This example uses an insecure implementation of the proposed vetKD system API in a pre-compiled form via the vetkd_system_api.wasm. This is not intended for use in production or for sensitive data! This example is solely provided for demonstration purposes to collect feedback on the mentioned vetKD system API. This disclaimer is also included in the README.

@fspreiss
fspreiss force-pushed the franzstefan/add-enc-notes-vetkd-example branch from 9b63347 to 9da9743 Compare July 10, 2023 12:56
@fspreiss fspreiss changed the title Franzstefan/add enc notes vetkd example Add encrypted-notes-dapp example based on vetKD Jul 10, 2023
@fspreiss
fspreiss requested a review from viviveevee July 10, 2023 16:22
@fspreiss
fspreiss marked this pull request as ready for review July 10, 2023 23:47
@fspreiss
fspreiss requested a review from a team as a code owner July 10, 2023 23:47
@viviveevee
viviveevee merged commit 7e6e76d into master Jul 11, 2023
@viviveevee
viviveevee deleted the franzstefan/add-enc-notes-vetkd-example branch July 11, 2023 08:20
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