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

Nillion file store view #468

Open
wants to merge 20 commits into
base: dev
Choose a base branch
from
Open

Nillion file store view #468

wants to merge 20 commits into from

Conversation

jdeepee
Copy link
Member

@jdeepee jdeepee commented Aug 1, 2024

Implements a file storage view into Flux.

This needed to be added as a core package directly inside flux due to the use of SharedArray buffer in @nillion/client-web. To use SharedArray buffer we are required to set strict cors rules from the host that will serve the UI. This means that if we serve from jsdeliver (as we do for other community packages), we will for one not have the correct cors rules and secondly will not be able to setup the required proxy to the nillion blockchain.

There is also some custom build work going on here, mainly that we avoid bundling the @nillion/client-web code with the plugin as @nillion/client-web does not work with vite bundle processes. Instead of bundling @nillion/client-web we just serve it out from the /dist directory and pull the files as needed by the plugin at runtime. Looking inside @nillion/client-web it seems most of the code is pre-bundled anyhow.

This implementation is as close to production ready as possible, and features:

  • Integration with the nillion testnet for secure file storage
  • Ability to set permissions on file objects
  • Integration with keplr wallet for testnet payments
  • Saving of file metadata related to nillion secret's inside ADAM subject entries.
  • Pairing of ADAM agent's DID's & Nillion user keys
  • Deterministically generates Nillion user keys on behalf of ADAM agents using an ADAM signature

To get up and running with keplr and get some nillion testnet fuel you can follow this guide.

This PR is only currently blocked by a review from the larger team & release of ADAM version 0.10.0 with the latest ad4m-connect & new logic inside executor to manage specific CORS rules for Flux.

Copy link

netlify bot commented Aug 1, 2024

Deploy Preview for fluxsocial-dev ready!

Name Link
🔨 Latest commit 6d8c888
🔍 Latest deploy log https://app.netlify.com/sites/fluxsocial-dev/deploys/66f67f506752e80008b7a751
😎 Deploy Preview https://deploy-preview-468--fluxsocial-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Aug 1, 2024

Deploy Preview for fluxdocs ready!

Name Link
🔨 Latest commit 6d8c888
🔍 Latest deploy log https://app.netlify.com/sites/fluxdocs/deploys/66f67f5014f64800081f97b7
😎 Deploy Preview https://deploy-preview-468--fluxdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Miniminitrue
Copy link

Miniminitrue commented Aug 1, 2024

This is excellent and opens doors to experimenting with other Cosmos SDK chains like https://jackalprotocol.com and https://akash.network/

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.

3 participants