Skip to content

Commit 49ab24f

Browse files
authored
chore: CRP-2694 delete encrypted notes dapp (#1231)
1 parent 8090afd commit 49ab24f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2
-27425
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
/motoko/counter/ @dfinity/languages
2323
/motoko/daily_planner/ @dfinity/ninja-devs
2424
/motoko/encrypted-notes-dapp-vetkd/ @dfinity/crypto-team
25-
/motoko/encrypted-notes-dapp/ @dfinity/crypto-team
2625
/motoko/evm_block_explorer/ @dfinity/ninja-devs
2726
/motoko/filevault/ @dfinity/ninja-devs
2827
/motoko/flying_ninja/ @dfinity/ninja-devs
@@ -65,7 +64,6 @@
6564
/rust/counter/ @dfinity/growth
6665
/rust/daily_planner/ @dfinity/ninja-devs
6766
/rust/encrypted-notes-dapp-vetkd/ @dfinity/crypto-team
68-
/rust/encrypted-notes-dapp/ @dfinity/crypto-team
6967
/rust/evm_block_explorer/ @dfinity/ninja-devs
7068
/rust/face-recognition/ @dfinity/execution
7169
/rust/flying_ninja/ @dfinity/ninja-devs

.github/workflows/motoko-encrypted-notes-example.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/rust-encrypted-notes-example.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

motoko/encrypted-notes-dapp-vetkd/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# Encrypted notes: vetKD
22

3-
This is a copy of the `encrypted-notes-dapp` example, adapted to use [the proposed vetKD feature](https://github.com/dfinity/interface-spec/pull/158) and add sharing of notes between users.
3+
Encrypted notes is an example dapp for authoring and storing confidential information on the Internet Computer (ICP) in the form of short pieces of text. Users can create and access their notes via any number of automatically synchronized devices authenticated via Internet Identity (II). Notes are stored confidentially using vetKeys. The end-to-end encryption is performed by the dapp’s frontend.
44

5-
In particular, instead of creating a principal-specific AES key and syncing it across devices (using device-specific RSA keys), the notes are encrypted with an AES key that is derived (directly in the browser) from a note-ID-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, plus sharing of notes becomes possible.
5+
In particular, the notes are encrypted with an AES key that is derived (directly in the browser) from a note-ID-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, plus sharing of notes becomes possible.
66

77
The vetKey used to encrypt and decrypt a note is note-ID-specific (and not, for example, principal-specific) to enable the sharing of notes between users. The derived AES keys are stored as non-extractable CryptoKeys in an IndexedDB in the browser for efficiency so that their respective vetKey only has to be fetched from the server once. To improve the security even further, the vetKeys' derivation information could be adapted to include a (numeric) epoch that advances each time the list of users with which the note is shared is changed.
88

99
Currently, the only way to use this dapp is via manual local deployment (see below).
1010

11-
Please also see the [README of the original encrypted-notes-dapp](../encrypted-notes-dapp/README.md) for further details.
12-
1311
## Prerequisites
1412

1513
This example requires an installation of:

motoko/encrypted-notes-dapp/.dockerignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

motoko/encrypted-notes-dapp/.gitignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)