Migrate File Backup Feature To Use IDX Instead Of 3Box #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Design
With the releases of IDX and Ceramic, we recommend replace 3Box-based file backup feature with IDX-based implementation.
In this solution, we followed the below design:
Related Issues
Fixes: ceramicnetwork/.github#39
IDX Configuration
To save ETH Build files as private data, we used JWE for encryption/description of the files, following the description of the tutorial: https://blog.ceramic.network/how-to-store-encrypted-secrets-using-idx/
create schema
We used the JWE schema as described in the tutorial: https://blog.ceramic.network/how-to-store-encrypted-secrets-using-idx/
create definition
idx-config.json
Acceptance Criteria
Challenges
canvas.toDataUrl()
function ) will as large as 500KB. To resolve this issue, we modified the image type (to jpeg) and quality of the screenshot to control the screenshot size within 64KB.Demo
Video: https://vimeo.com/493497686
Suppose that you have created something with Eth.Build, and then you'd like to save your file via IDX.
Save
button, and selectSave to IDX
Next, if you leave Eth.Build for a while, and want to load the saved files via IDX when you visited the site again.
Load
button, and selectLoad From IDX
Save
workflow, you'll need to connect your account with IDX (if it hasn't been connected automatically yet)Guideline for Migration from 3Box to IDX
Here is a quick reference for the DApp that wants to migrate from 3Box to IDX.