SE2-Gun is a powerful boilerplate that integrates ScaffoldETH2 with Gun.js and Ethereum blockchain functionality. It provides a robust infrastructure for developing decentralized applications (dApps) with decentralized storage, Ethereum-based authentication, and blockchain data integrity verification. This boilerplate is ideal for developers looking to create scalable and secure dApps with an end-to-end decentralized architecture.
Attention: If you don't connect any relay in the configuration file, this Gun.js implementation will operate without external relays. Consequently, all data saved and managed through Gun will be stored exclusively in your browser's local storage. This means:
It is recommended to use this configuration for development and testing purposes only. For a complete and functional implementation in a production environment, it is necessary to configure and connect Gun to appropriate relays to ensure data persistence and synchronization.
The SE2-Gun-Extension is a plugin for ScaffoldETH2 that provides a ready to go installation of Gun and the Gun-Eth plugin.
npx create-eth@latest -e {scobru/SE-2Gun-extension}
The Gun-eth plugin extends Gun.js functionality to integrate seamlessly with Ethereum blockchain capabilities. It provides a suite of tools for working with Ethereum signatures, managing encrypted key pairs, and implementing the SHINE for blockchain data verification.
The authentication process in SHINE combines Ethereum signatures with Gun.js for secure and decentralized user management:
This process ensures secure, pseudonymous authentication without relying on centralized servers or exposing sensitive information.
The Inspector component provides a powerful tool for exploring and manipulating Gun.js data:
The Inspector is an essential tool for developers working with Gun.js, providing insights into data structure and facilitating debugging and data management tasks.
SE2-Gun utilizes a powerful technology stack to provide a comprehensive and decentralized dApp development experience:
This stack offers several advantages:
This project is a fork of Scaffold-ETH2, with the addition of GunDB and the Gun-Eth plugin. tnx to scaffold-eth-svelte for the SE2-Gun-Extension and the Gun-Eth plugin.
We welcome contributions to SE2-Gun! If you'd like to contribute, please follow these steps:
Please ensure that your code adheres to the existing style and that all tests pass before submitting a pull request.
SE2-Gun is released under the MIT License. See the LICENSE file for more details.