Welcome to the Lit Ceramic Integration web playground. This is a playground for the lit-ceramic-sdk module, to show anyone who's interested what it looks like in practice! It uses this module to encrypt (with Lit) and store (with Cermamic) any string the user wants to store. It will be accessible only to those who control the wallet of the user that made it. It appears on the ceramic network as encrypted data.
Make sure to run yarn
to install everything at first.
Run yarn start
to start the server.
Test the full stack of Ceramic Network components in a web browser. This project is based off of the above ceramic playground.
- Lit Protocol Encryption: an open source, decentralized utility that uses encryption to provide blockchain users access to digital and real world experiences. The network acts as a decentralized access control list (ACL) which leverages on-chain data to grant users access to content, software, and other decentralized networks.
- Ceramic HTTP Client: Provides access to the Ceramic Network via a remote node running Ceramic (and IPFS).
- 3ID Connect: Provides authentication to a DID (used by Ceramic) from a blockchain wallet, and stores a link from this blockchain account to your DID in IDX.
The app is configured to only let users with at least 0.000001 ETH decrypt the content. This access control condition can be changed to anything you want. You can find some examples here: https://developer.litprotocol.com/docs/SDK/accessControlConditionExamples
- Open the Playground page, often localhost:1234 when running parcel
- Open your browser's console by inspecting the page
- Click Encrypt w/ Lit + Send button to begin process!
- Authenticate by clicking "Connect wallet"
- Approve prompts in your Web3 wallet for both Ceramic and Lit
- Wait to see "Connected with DID" in your console
- Write and read Lit-Encrypted documents on the Ceramic Network from the console using the referenced API methods
Apache-2.0 OR MIT