Technology Overview
2.1 Blockchain Platform: BNB Smart Chain
Discuzz Network utilizes the BNB Smart Chain (BSC) blockchain platform to ensure fast and reliable operation of our token. BNB Smart Chain, which supports the BEP-20 token standard, is one of the most popular blockchain platforms due to its high throughput and low fees.
BNB Smart Chain operates on a Proof of Staked Authority (PoSA) consensus mechanism, which combines Proof of Stake and Proof of Authority for rapid transaction confirmation. This allows Discuzz Network to ensure scalability for handling numerous transactions within our ecosystem, which includes crypto transfers, wallet integrations, and other functionalities.
Key advantages of choosing BNB Smart Chain for Discuzz Network:
- Fast Transactions: PoSA enables us to efficiently process a large volume of transactions, which is critical for maintaining the stable operation of our application.
- Low Fees: One of the key advantages of BNB Smart Chain is its low fees, reducing costs for our users.
2.2 Smart Contract Solidity
Our smart contract, responsible for managing cryptocurrency transfers and other operations within Discuzz Network, is written in Solidity — a programming language for smart contracts on blockchains such as BNB Smart Chain and Ethereum.
Key features of the smart contract:
- Minting: The ability to create new tokens within our system, which allows, for instance, the payment of rewards to users.
- Burning: A function that removes tokens from circulation to control inflation or reduce the number of tokens in circulation.
- Approval & Allowance: These functions allow granting permissions to other addresses to manage tokens, particularly for external integrations or automated processes.
For the development, testing, and deployment of the smart contract in Discuzz Network, we utilized Hardhat. Hardhat is a tool for blockchain development that supports modular testing, code compilation, and debugging, enabling the automation of all necessary smart contract processes.
2.3 Technologies Used in Discuzz Network
Discuzz Video-Chat
The Discuzz Video-Chat platform is built on Next.js 14, a powerful library for developing modern web applications with server-side and client-side rendering separation. This allows for optimized performance and speed of the interface.
To ensure an interactive and responsive user interface, Tailwind CSS is utilized — a utility-first CSS framework that provides the ability to style flexibly without writing a large amount of custom CSS.
User connectivity in the video chat is implemented via Stream, which enables high-quality real-time audio and video transmission. For user authentication and data storage, Clerk is used — an authorization system responsible for managing logins, email addresses, and maintaining a history of user activity, including the number of calls made and tokens earned for completed tasks.
Discuzz FindMe
Discuzz FindMe is built on Next.js 14, benefiting from the advantages of server-side and client-side rendering. By utilizing Tailwind CSS, the application maintains its responsiveness and ease of style customization.
For user authentication and data storage, Clerk is employed, which collects personal information: profile details (personal page), social media addresses (optional), professional skills, and publication history. After posting updates or profile changes, this data is sent to the server via an API for storage in the database. This allows users to quickly find partners with similar interests or professional activities.
Discuzz Web3
Discuzz Crypto is also implemented using Next.js 14, ensuring stability and user-friendliness through the division of rendering between the server and client. Like the other applications in the Discuzz Network, styling is done using Tailwind CSS.
Clerk is used for authentication, which is responsible for storing users' transaction history on the blockchain and tracking their progress in completing tasks. This allows for accurate tracking of completed actions and providing appropriate rewards for using the application.
Additionally, Discuzz Crypto is integrated with Alchemy for blockchain interaction via web3 API, ensuring fast and secure crypto transfers. The smart contract is developed using Hardhat.
MongoDB Database
All applications within the Discuzz Network interact with a database to store critical information:
- Discuzz Video-Chat stores user activity data, including the number of calls, completed tasks, and earned rewards.
- Discuzz FindMe keeps user profiles, posts, information about professional skills, and contacts.
- Discuzz Crypto processes and stores users' transaction history, providing insights into their participation in financial operations within the project.
For data storage, we use MongoDB—a document-oriented database known for its high performance and scalability. This solution allows for the efficient storage of large volumes of data and rapid processing of real-time queries, which is crucial for ensuring the continuous operation of the Discuzz Network platform.
2.4 Integration with Crypto Wallets
At this stage, Discuzz Network supports integration with the popular crypto wallet MetaMask. This allows our users to easily interact with the Discuzz token, conduct transfers, and manage their assets conveniently and quickly.
The integration is implemented using the Web3.js library, which enables our application to interact with the blockchain via MetaMask. In the future, we plan to add support for other crypto wallets, such as Trust Wallet and others.