memochain is a simple Solidity-based smart contract that acts as an on-chain memory vault.
It allows users to store, view, and update short text "memories" directly on the blockchain β
making every thought permanent, timestamped, and transparent.
This project demonstrates how to create a chain-based memory system using Solidity.
Each memory entry is stored with:
- The author's Ethereum address
- A timestamp
- The actual memory text
Anyone can add a new memory, while only the author can edit their own entry.
The contract owner also has the ability to remove the last memory if needed.
- π Add new text memories on-chain
- π Retrieve and read all stored memories
- βοΈ Update your own memories (author-only)
- π§Ή Owner can remove the most recent memory
- π Transparent & immutable storage (demo-safe)
File Name: blockchain.sol
Contract Name: blockchain
Compiler Version: ^0.8.19
- Language: Solidity
- Blockchain: Ethereum / EVM-compatible
- Tools: Remix IDE, MetaMask
