{"id":15152898,"url":"https://github.com/vijan45/decentralized-mail","last_synced_at":"2026-01-21T16:32:11.223Z","repository":{"id":250459985,"uuid":"834521289","full_name":"Vijan45/decentralized-mail","owner":"Vijan45","description":"Decentralized Mail System on RSK Testnet - A secure and transparent blockchain-based messaging platform using smart contracts and IPFS.","archived":false,"fork":false,"pushed_at":"2024-07-30T09:01:07.000Z","size":82140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T14:19:02.622Z","etag":null,"topics":["blockchain","decentralized","ipfs","messaging","react","rsk","smart-contracts","web3"],"latest_commit_sha":null,"homepage":"https://vijan45.github.io/decentralized-mail/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vijan45.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-27T14:19:20.000Z","updated_at":"2024-10-24T16:36:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5c3cc52-21c2-44d3-b89f-b513a197367e","html_url":"https://github.com/Vijan45/decentralized-mail","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"1a04f5176d316e219c58382a867310c89f01150e"},"previous_names":["vijan45/decentralized-mail"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vijan45%2Fdecentralized-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vijan45%2Fdecentralized-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vijan45%2Fdecentralized-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vijan45%2Fdecentralized-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vijan45","download_url":"https://codeload.github.com/Vijan45/decentralized-mail/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247645342,"owners_count":20972456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","decentralized","ipfs","messaging","react","rsk","smart-contracts","web3"],"created_at":"2024-09-26T16:41:21.163Z","updated_at":"2026-01-21T16:32:11.145Z","avatar_url":"https://github.com/Vijan45.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Decentralized Mail\n\n## Overview\n\nDecentralized Mail is a blockchain-based email application built on the RSK testnet. It allows users to send and receive messages in a secure and decentralized manner. The application leverages smart contracts to manage messages, ensuring that they are immutable and accessible only to the intended recipients.\n\n## Features\n\n- **Send and Receive Messages**: Users can send messages to other users on the platform and receive messages from them.\n- **Message Attachments**: Supports sending and displaying images as attachments through IPFS.\n- **Delete Messages**: Users can delete messages they have sent or received.\n- **Inbox Management**: View and manage messages in your inbox, including viewing details and replying to messages.\n\n## Prerequisites\n\n- Node.js\n- npm or yarn\n- Metamask or another Ethereum-compatible wallet\n- RSK Testnet\n\n## Installation\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/yourusername/decentralized-mail.git\n    ```\n\n2. Navigate to the project directory:\n\n    ```bash\n    cd decentralized-mail\n    ```\n\n3. Install dependencies:\n\n    ```bash\n    npm install\n    # or\n    yarn install\n    ```\n\n4. Configure your environment variables by creating a `.env` file in the root directory with the following content:\n\n    ```plaintext\n   MNEMONIC=your_mnemonic_phrase_here //You need to add your wallet's 12 words mnemonic phrase here\n   REACT_APP_PINATA_API_KEY=your_pinata_api_key\n   REACT_APP_PINATA_SECRET_KEY=your_pinata_secret_key\n   REACT_APP_CONTRACT_ADDRESS=your_rsk_testnet_contract_address\n    ```\n\n## Usage\n\n1. **Start the development server:**\n\n    ```bash\n    npm start\n    # or\n    yarn start\n    ```\n\n2. **Deploy the smart contract:**\n\n    - Navigate to the `scripts` directory and run the deployment script:\n\n        ```bash\n        truffle migrate --network testnet\n        ```\n\n3. **Interact with the Application:**\n\n    - Open your browser and navigate to `http://localhost:3000`.\n    - Connect your wallet (Metamask) and start using the application.\n\n## Smart Contract\n\nThe smart contract for Decentralized Mail is located in the `contracts/DecentralizedMail.sol` file. It includes functions to send, receive, and delete messages. For detailed information about the smart contract, refer to the [DecentralizedMail.sol](contracts/DecentralizedMail.sol) file.\n\n## Helper Functions and Contract Setup\n\nThe `utils/contract.js` file contains helper functions to interact with the smart contract. It provides functions to initialize Web3, get the contract instance, and handle interactions with the blockchain.\n\n## Known Issues\n\n- **EIP-1559 Error**: Some transactions may fail with an \"EIP-1559NotSupportedError\". Ensure you are using a compatible network configuration and gas price settings.\n\n## Contributing\n\nContributions are welcome! Please follow the standard GitHub workflow for contributing to this project:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Commit your changes (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Open a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License. You can download the [MIT License](https://raw.githubusercontent.com/Vijan45/decentralized-mail/main/MIT%20License.txt) file directly or view it in the [LICENSE](LICENSE) file for details.\n\n\n## Contact\n\nFor any questions or support, please open an issue on the [GitHub repository](https://github.com/Vijan45/decentralized-mail).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijan45%2Fdecentralized-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvijan45%2Fdecentralized-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijan45%2Fdecentralized-mail/lists"}