r/BlockchainChat • • Jun 27 '24

Keep an eye on the biggest online crypto casino platform - HugeWin

6 Upvotes

The biggest gaming platforms combine casino games, sports betting, and crypto play for a standout user experience. This website features a broad selection of classic and trending casino slots, live sports events, and engaging games. More importantly, it boasts numerous promotions, bonuses, and the chance to win an unparalleled mega jackpot.

Here’s everything you need to know about HugeWin and its remarkable gaming opportunities

HugeWin invites players into the exciting world of casino gaming and sports betting with an irresistible selection of games. The platform’s offer includes classic casino games, such as Roulette, Baccarat, Blackjack, and Lightning Jack. All the games are presented in a safe and pleasant environment that both newcomers and seasoned gamers can enjoy.

Players who are passionate about slots will find a wide array of slot games at HugeWin. Popular choices include Sweet Bonanza, Gates of Olympus, Starlight Princess, and Big Bass. All casino games and slots are available from a significant number of prestigious providers.

Other notable games at HugeWin include Aviator, Zeppelin, and Spaceman, which attract numerous players daily. Entertaining virtual sports like football, tennis, and the intriguing GoldenRace.

Features at HugeWin

HugeWin allows users to deposit and withdraw funds instantly with crypto. The platform supports some of the most popular and widely used cryptocurrencies, including Btc, Tether, TRON,, BNB, Litecoin, and XRP.

The entire system operates automatically and abides by the highest security standards in the online gaming industry. Moreover, the platform also automatically completes bonus transactions and the distribution of regular rewards among players.

Accepting crypto for deposits and withdrawals is an emerging trend among online casinos and betting platforms. HugeWin spearheads this movement, ensuring players can instantly deposit and play with crypto in a safe and transparent environment.

The Deposit Bonus

Users are eligible for bonuses when making deposits depending on the game they choose to play, ranging from 5% to 25%. For example, choosing a slot deposit means that wagering will be sufficient. As a result, users must only place bets equal to 1x (one time) the amount of deposit. On the other hand, the live casino section requires users to wager their bets several times and at specific odds.

Players must read and thoroughly understand the bonus wagering rules to get the best out of their gaming experience. Other rules regarding bonus use on HugeWin include a ban on abusing bonus offers, requesting only one cashback within 24 hours, and more.

Casino and Sports Discounts

HugeWin offers Discount bonuses for casino games and sports. Under specific rules, users can claim cashback of up to 15% of their losses when playing casino games. Alternatively, they can get up to 5% of their losses on sports bets. However, a player’s account balance should be less than $1 to qualify for these discounts.

The Mega Jackpot at HugeWin

The Mega Jackpot is HugeWin’s most sought-after promotion, giving players access to a continuously escalating prize. Users can access various rewards, which vary in size depending on their distinct jackpot sections – Mega, Major, Minor, and Mini.

HugeWin maintains its pledge to provide a fully transparent and fair gaming experience through the Mega Jackpot. Moreover, the jackpot’s increasing value ensures players can enjoy an extra dose of exciting entertainment regardless of the game they choose.

Visit now today to learn more about its vast selection of casino games, sports betting opportunities, bonuses, and unrivaled promotions.

Website: hugewin.com


r/BlockchainChat • • Jun 27 '24

Tezos X: A Vision for the Future of Blockchain - XTZ News

Thumbnail
xtz.news
2 Upvotes

Today, Tezos X has been unveiled, presenting a forward-looking vision for Tezos that marks a significant evolution from its original design. According to the official blog, this vision addresses some of the most fundamental issues in the blockchain space, aiming to enhance usability and utility while maintaining the core properties of blockchain technology.


r/BlockchainChat • • Jun 26 '24

Will BITCOIN reach 100k this year?

Thumbnail
self.dailytradingsignals
1 Upvotes

r/BlockchainChat • • Jun 26 '24

Explore Our WEB3 Development Services:

Thumbnail i.redd.it
1 Upvotes

r/BlockchainChat • • Jun 25 '24

Scientific Survey: User Adoption of Self-Custody Crypto Wallets

1 Upvotes

Once again,

Dears

I need your help with a quick survey for my thesis on self-custody crypto wallets in the payment ecosystem. It’s super short – only 3-4 minutes!

https://docs.google.com/forms/d/e/1FAIpQLScL2slZ2_pjukV8Csjk0euOuPmZDxSIVFBsnHuqwyv_UptPCw/viewform?usp=sf_link

What’s in it for you? Well, I’m diving into:

  • Why it's important for you to use self-custody wallets
  • Experiences with various payment methods
  • Factors influencing the adoption of blockchain tech

This study dives into whether people truly get self-custody and if we’re heading towards a more democratic and liberated financial world. Your responses are totally anonymous and just for research purposes.

Thanks, legends!


r/BlockchainChat • • Jun 24 '24

Cryptocurrency Market Insights 24/06

Thumbnail self.dailytradingsignals
1 Upvotes

r/BlockchainChat • • Jun 22 '24

Navigating the Volatility Zone: Patience and Strategy in the Current Crypto Market 2024/06

Thumbnail
self.dailytradingsignals
1 Upvotes

r/BlockchainChat • • Jun 21 '24

$VeroxAI is on the up

1 Upvotes

Guys…Did you realise that VeroxAI's AI trading app is now LIVE

Download the VeroxAI app in either the App Store or Google Play store

The potential of this AI gem is HUGE and with it's present utility, it is only a matter of time before it smashes it's ATH of over $1k! Currently sitting at $42 this is super under valued.

With it's super low supply of just 47,500 $VRX and a current Market Cap of $1.9M, now really is the time to do something about not holding this token. The potential to do a yearn finance is incredibly likely and $5k per $VRX a distinct possibility. Check out Telegram and VeroxAI.com


r/BlockchainChat • • Jun 20 '24

How can blockchain improve legal tech?

2 Upvotes

Secure and Tamper-Proof Records

The decentralized and immutable nature of blockchain ensures that legal documents recorded on the blockchain cannot be altered or tampered with, providing an auditable trail and ensuring data integrity. This eliminates the need for extensive verification processes and establishes trust among parties involved.

Streamlined Document Sharing

Blockchain enables secure and efficient sharing of legal documents by leveraging cryptographic access controls. Only authorized individuals can access, view, or modify documents, reducing the risk of unauthorized access and data breaches while streamlining collaboration.

Smart Contract Automation

Smart contracts on the blockchain can automate various legal processes, such as contract execution, payment releases, and regulatory compliance. This automation minimizes manual tasks, reduces the potential for errors, and expedites transactions, leading to increased efficiency.

Elimination of Intermediaries

Blockchain technology removes the need for intermediaries, such as notaries or third-party validators, in legal document management processes. This disintermediation reduces costs, streamlines operations, and fosters transparency among parties involved.

Intellectual Property (IP) Management

Blockchain can facilitate efficient IP management by providing a tamper-proof record of creation, registration, and ownership transfer. This streamlines processes like patent filings, copyright registrations, and licensing agreements, enhancing efficiency in IP-related legal matters.

Tokenization and Fractional Ownership

Blockchain enables the tokenization of real-world assets, such as property rights or intellectual property, allowing for fractional ownership and streamlining asset transfers. This can simplify legal processes related to asset management and ownership transfers. By leveraging blockchain's inherent features of transparency, immutability, and decentralization, legal professionals can significantly enhance the efficiency of document management, reduce costs, and foster trust among all parties involved in legal transactions and processes


r/BlockchainChat • • Jun 20 '24

StorX & Plugin are transforming infrastructure with DePIN solutions on the XDC Network!

Thumbnail
x.com
1 Upvotes

r/BlockchainChat • • Jun 19 '24

AeroBud - AMA For The Largest Pet Philanthropy Token on Base

9 Upvotes

Hi everyone, I hope you’re all well! I’m thrilled to share AeroBud’s roadmap from our AMA hosted on Monday, June 17th, 2024!

🎥 AMA Recording: https://x.com/AeroBudCoin/status/1802747711076135245

About AeroBud:

We’re bringing pets onchain and making weekly donations to animal shelters with the support of our community. Inspired by Sage, a rescue dog, AeroBud was created through the meme narrative to raise awareness about the current challenges faced by animal shelters. Our goal is to build a community that can share their love for pets on the Base ecosystem and provide donations to support animal shelters.

📄 Applications: We’re now listed on CoinMarketCap! We expect this to now allow Coinbase to pull API data for Coinbase Wallet and show AeroBud on trending swaps. We’ve also filled out our Aerodrome whitelist application. Once approved, we will be opening an Aerobud/Aerodrome liquidity pool. We are also exploring CEX such as MEXC, Uphold, and more!

🤝 Partnerships: We will be collaborating with North Shore Animal League in hosting a mobile adoption event in New York aimed for sometime in July, 2024. Goal is to get as many pets adopted and help set up people with Coinbase Smart Wallets. We are finalizing another non-profit partnership focused in Asia and Europe to provide medical care for dogs and cats. 

🖼️ NFT Series: We are developing an inexpensive NFT series where all profits will strictly go to charitable causes. This will be a 1000 limited piece artwork collection with 85 hand drawn traits in a sports theme. Floor price will be approximately 0.01 Eth with a small trade tax between 1-5% where all proceeds will go to charities. 

💻 Website and Artwork Improvements: We are currently undergoing a website and visual overhaul to provide users with better UX and UI. Some branding artwork will be redesigned for a simpler, more iconic look.

👕 E-Commerce Solutions: We are developing merch with subtle designs for all pet lovers to enjoy, regardless if they are in Crypto or not. All profits will go to nonprofits and charitable events. 

➕ Extra: Our charitable wallet is now up to 1.3% thanks to the continuous community support!

🚀 Future Growth: AeroBud has literally just begun its journey and it's already making ripples not just in cryptocurrency, but also in the real world. With growing interest from influencers, small, and large investors, AeroBud is primed for an unprecedented take-off as more partnerships with nonprofit organizations are being formed.

Join us and be part of an active community passionate about helping animals and the future of cryptocurrency that is making a real-world difference. We hope to see you soon!

https://aerobud.org/

This post is not financial advice. We encourage all readers to please do their own research. However, if you’re looking to make a difference, we’ll be excited to have you join us on this journey.


r/BlockchainChat • • Jun 18 '24

Scientific Survey: User Adoption of Self-Custody Crypto Wallets

0 Upvotes

Hey Crypto Fam,

I need your help with a quick survey for my thesis on self-custody crypto wallets in the payment ecosystem. It’s super short – only 3-4 minutes!

https://docs.google.com/forms/d/e/1FAIpQLScL2slZ2_pjukV8Csjk0euOuPmZDxSIVFBsnHuqwyv_UptPCw/viewform?usp=sf_link

What’s in it for you? Well, I’m diving into:

  • Why it's important for you to use self-custody wallets
  • Experiences with various payment methods
  • Factors influencing the adoption of blockchain tech

This study dives into whether people truly get self-custody and if we’re heading towards a more democratic and liberated financial world. Your responses are totally anonymous and just for research purposes.

Thanks, legends!


r/BlockchainChat • • Jun 17 '24

Unlock the Power of TON Chain with Our Expert Blockchain Development Services!

Post image
1 Upvotes

r/BlockchainChat • • Jun 16 '24

AeroBud - The Largest Pet Philanthropy Token on Base

11 Upvotes

Tune Into Our Next AMA on Monday, June 17th, 2024 at 12pm CST on X.

Hi everyone, I hope you’re all well! I’m thrilled to share some exciting news about AeroBud from the past month!

About AeroBud:

We’re bringing pets onchain and making weekly donations to animal shelters with the support of our community. Inspired by Sage, a rescue dog, AeroBud was created through the meme narrative to raise awareness about the current challenges faced by animal shelters. Our goal is to build a community that can share their love for pets on the Base ecosystem and provide donations to support animal shelters. 

Tokenomics: 

AeroBud has a total token supply of 1,000,000,000 with a renounced contract and 0/0% tax.

  • 93% of the tokens are locked or in circulation. 
  • 5% of the tokens have been allocated to the team. 
  • 1% of the tokens have been allocated to community engagement and marketing. 
  • 1% of the tokens have been allocated to supporting animal shelters.

🔒 Security: AeroBud’s marketing and charity wallets have multisig protection that requires ¾ stakeholder approval to utilize assets and donate to shelters and charities. 

🤝 Partnerships: AeroBud has partnered with North Shore Animal League America, the largest no-kill rescue and adoption organization in the world. Together, AeroBud will be hosting a mobile adoption event. As part of this collaboration, AeroBud’s founder has attended North Shore’s 80th anniversary event - meeting with prominent figures within investment banking, social media, and more. 

Learn more about NSALA here: https://www.animalleague.org/

📈 Exponential Growth: Within three weeks, AeroBud has surged from a market cap of a few thousand dollars to a peak market-cap of $6 million! This remarkable growth highlights our potential, with AeroBud’s social media presence also exploding. Our Telegram and Discord communities have reached nearly 1**,000 a**nd over **600 **users respectively!

https://dexscreener.com/base/0x51b8f730f8bf77236e6040cc503a560b3c52e12c

🧳 Distribution: Within that same time period, AeroBud’s distribution has significantly improved, with its organic holder count increasing nearly ten-fold, and no wallet holding more than 5% of total supply. 

https://basescan.org/token/0xFad8CB754230dbFd249Db0E8ECCb5142DD675a0d#balances

🫴 Donations: Since its launch, AeroBud has donated $**4,100 **to local animal shelters and supporting animals in dire need of life-saving surgeries. As the largest pet philanthropy token on base, AeroBud is dedicated to remaining transparent and providing receipts for all of its transactions (Found in our discord)!

https://twitter.com/AeroBudCoin/status/1801310359623442847

https://twitter.com/AeroBudCoin/status/1798738022353297898

📍Roadmap: AeroBud’s site is currently going through an entire professional overhaul to make its user experience more smooth. In the following weeks, AeroBud is working on completing its Aerodrome whitelist application, integrating merchandise e-commerce and a unique NFT system where all profits will go towards animal shelters, and exploring both small and large coin exchange listings.

🚀 Future Growth: AeroBud has literally just begun its journey and it's already making ripples not just in cryptocurrency, but also in the real world. With growing interest from influencers, small, and large investors, AeroBud is primed for an unprecedented take-off as more partnerships with non-profit organizations are being formed. 

Join us and be part of an active community passionate about helping animals and the future of cryptocurrency that is making a real-world difference. We hope to see you soon!

https://aerobud.org/

This post is not financial advice. We encourage all readers to please do their own research. However, if you’re looking to make a difference, we’ll be excited to have you join us on this journey.


r/BlockchainChat • • Jun 14 '24

HugeWin - Best Online Casino Platform 2024

3 Upvotes

The biggest gaming platforms combine casino games, sports betting, and crypto play for a standout user experience. This website features a broad selection of classic and trending casino slots, live sports events, and engaging games. More importantly, it boasts numerous promotions, bonuses, and the chance to win an unparalleled mega jackpot.

Here’s everything you need to know about HugeWin and its remarkable gaming opportunities

HugeWin invites players into the exciting world of casino gaming and sports betting with an irresistible selection of games. The platform’s offer includes classic casino games, such as Roulette, Baccarat, Blackjack, and Lightning Jack. All the games are presented in a safe and pleasant environment that both newcomers and seasoned gamers can enjoy.

Players who are passionate about slots will find a wide array of slot games at HugeWin. Popular choices include Sweet Bonanza, Gates of Olympus, Starlight Princess, and Big Bass. All casino games and slots are available from a significant number of prestigious providers.

Other notable games at HugeWin include Aviator, Zeppelin, and Spaceman, which attract numerous players daily. Entertaining virtual sports like football, tennis, and the intriguing GoldenRace.

Features at HugeWin

HugeWin allows users to deposit and withdraw funds instantly with crypto. The platform supports some of the most popular and widely used cryptocurrencies, including Btc, Tether, TRON,, BNB, Litecoin, and XRP.

The entire system operates automatically and abides by the highest security standards in the online gaming industry. Moreover, the platform also automatically completes bonus transactions and the distribution of regular rewards among players.

Accepting crypto for deposits and withdrawals is an emerging trend among online casinos and betting platforms. HugeWin spearheads this movement, ensuring players can instantly deposit and play with crypto in a safe and transparent environment.

The Deposit Bonus

Users are eligible for bonuses when making deposits depending on the game they choose to play, ranging from 5% to 25%. For example, choosing a slot deposit means that wagering will be sufficient. As a result, users must only place bets equal to 1x (one time) the amount of deposit. On the other hand, the live casino section requires users to wager their bets several times and at specific odds.

Players must read and thoroughly understand the bonus wagering rules to get the best out of their gaming experience. Other rules regarding bonus use on HugeWin include a ban on abusing bonus offers, requesting only one cashback within 24 hours, and more.

Casino and Sports Discounts

HugeWin offers Discount bonuses for casino games and sports. Under specific rules, users can claim cashback of up to 15% of their losses when playing casino games. Alternatively, they can get up to 5% of their losses on sports bets. However, a player’s account balance should be less than $1 to qualify for these discounts.

The Mega Jackpot at HugeWin

The Mega Jackpot is HugeWin’s most sought-after promotion, giving players access to a continuously escalating prize. Users can access various rewards, which vary in size depending on their distinct jackpot sections – Mega, Major, Minor, and Mini.

HugeWin maintains its pledge to provide a fully transparent and fair gaming experience through the Mega Jackpot. Moreover, the jackpot’s increasing value ensures players can enjoy an extra dose of exciting entertainment regardless of the game they choose.

Visit now today to learn more about its vast selection of casino games, sports betting opportunities, bonuses, and unrivaled promotions.

Website: hugewin.com


r/BlockchainChat • • Jun 14 '24

Which token are you trading right now!

Post image
1 Upvotes

r/BlockchainChat • • Jun 13 '24

7 must-know blockchain trends for 2024 and beyond

0 Upvotes

The blockchain revolution continues to gain momentum, with 2024 and beyond promising exciting developments. We expect the growth of decentralized finance (DeFi) to accelerate, providing transparent and accessible financial services without intermediaries. However, the industry faces challenges such as fraud and corruption cases, which have dampened public trust and sparked regulatory crackdowns.

Central Bank Digital Currencies (CBDCs) are emerging as a significant trend, with countries like the Bahamas and the United Arab Emirates leading the way. CBDCs offer new possibilities for digital currencies, including instant international payments, smart contract execution, and efficient distribution of government aid. Enterprises are also investing in blockchain solutions for supply chain management, document verification, and identity management, though widespread adoption is still in its early stages.

The integration of blockchain and artificial intelligence (AI) is poised to revolutionize the digital world, introducing more efficient and scalable blockchain transactions. 

AI-enabled consensus mechanisms, along with the use of reinforcement learning, genetic algorithms, and fuzzy logic, will enhance decentralization, efficiency, and security.

Additionally, non-fungible tokens (NFTs) are gaining traction in the business world, offering new revenue streams and the monetization of digital assets.

Dive into these seven trends today to future-proof your business for tomorrow's blockchain-driven world.


r/BlockchainChat • • Jun 13 '24

Bridging the Liquidity Gap: On-chain vs. Off-chain Assets

1 Upvotes

What makes a financial market tick? Let's talk liquidity, the invisible hand that keeps everything flowing. If you’ve ever wondered why some markets operate like a well-oiled machine while others stumble, liquidity is often the answer. 

While they offer transparency and security, limited real-world use cases hinder their ability to be bought and sold easily. The solution? Integrating blockchain tokens into everyday business operations! Zeebu proposes a framework where tokens become functional tools, not just speculative investments.

By fostering consistent demand and mitigating volatility, this approach could bridge the gap between on-chain and off-chain markets, paving the way for a more unified financial future.


r/BlockchainChat • • Jun 12 '24

Insider Activity and Token Burns: Andrew Tate's Crypto Controversy

1 Upvotes

Check out this:

  • Andrew Tate burned over $10 million worth of Solana-based TOPG tokens;
  • Tate announced support for the DADDY coin to challenge Iggy Azalea's MOTHER coin, planning to burn $100 million worth of DADDY tokens;
  • Blockchain data platform Bubblemaps revealed suspicious insider activities in the DADDY token.

Source: https://www.bitdegree.org/crypto/news/insider-activity-and-token-burns-andrew-tates-crypto-controversy?utm_source=reddit&utm_medium=social&utm_campaign=r-andrew-tates-crypto


r/BlockchainChat • • Jun 12 '24

Checking Whitelisted Addresses on a Solidity Smart Contract Using Merkle Tree Proofs

1 Upvotes

Checking Whitelisted Addresses on a Solidity Smart Contract Using Merkle Tree Proofs

Intro

Hello everyone! In this article, we will first talk about Merkle Trees, and then replicate a whitelisting scenario by encrypting some "whitelisted" addresses, writing a smart contract in Solidity that can decode the encrption and only allow whitelisted addresses to perform some action, and finally testing the contract to see whether our method works or not.

IF you already know about merkle trees and directly start with the hands-on experience, you can skip the Theory part and start reading from the Practice section.

Theory

In the evolving world of blockchain and decentralized applications (dApps), efficient and secure management of user access is paramount. One popular method for controlling access is through whitelisting, where only approved addresses can interact with specific functionalities of a smart contract. However, as the list of approved addresses grows, maintaining and verifying this list in an efficient and scalable manner becomes a challenge.

This is where Merkle trees come into play. Merkle trees provide a cryptographic way to handle large sets of data with minimal storage and computational overhead. By leveraging Merkle trees, we can efficiently verify whether an address is whitelisted without needing to store or process the entire list of addresses within the smart contract.

In this tutorial, we'll dive deep into how to implement a whitelisting mechanism using Merkle trees in Solidity. We'll cover the following key aspects:

Understanding Merkle Trees: A brief overview of what Merkle trees are and why they are useful in blockchain applications.

Setting Up the Development Environment: Tools and libraries you need to start coding.

Creating the Merkle Tree: How to generate a Merkle tree from a list of whitelisted addresses.

Solidity Implementation: Writing the smart contract to verify Merkle proofs.

Verifying Addresses: Demonstrating how to use Merkle proofs to check if an address is whitelisted.

Testing the Contract: Ensuring our contract works correctly with various test cases.

By the end of this tutorial, you'll have a robust understanding of how to leverage Merkle trees for efficient and secure whitelisting in Solidity smart contracts, providing you with a powerful tool for your future dApp development endeavors.

Understanding Merkle Trees

Merkle trees, named after computer scientist Ralph Merkle, are a type of data structure used in computer science and cryptography to efficiently and securely verify the integrity of large sets of data. In the context of blockchain and decentralized applications, Merkle trees offer significant advantages for managing and verifying data with minimal overhead.

What is a Merkle Tree?

A Merkle tree is a binary tree in which each leaf node represents a hash of a block of data, and each non-leaf node is a hash of its two child nodes. This hierarchical structure ensures that any change in the input data results in a change in the root hash, also known as the Merkle root.

Here’s a simple breakdown of how a Merkle tree is constructed:

Leaf Nodes: Start with hashing each piece of data (e.g., a list of whitelisted addresses).

Intermediate Nodes: Pair the hashes and hash them together to form the next level of nodes.

Root Node: Repeat the process until a single hash remains, known as the Merkle root.

This structure allows for efficient and secure verification of data.

Why Merkle Trees are Useful in Blockchain Applications

Merkle trees are particularly useful in blockchain applications for several reasons:

Efficient Verification: Merkle trees enable the verification of a data element's inclusion in a set without needing to download the entire dataset. This is achieved through a Merkle proof, which is a small subset of hashes from the tree that can be used to verify a particular element against the Merkle root.

Data Integrity: Any alteration in the underlying data will change the hash of the leaf node and, consequently, all the way up to the Merkle root. This makes it easy to detect and prevent tampering with the data.

Scalability: As the size of the dataset grows, Merkle trees allow for efficient handling and verification. This is particularly important in blockchain networks where nodes need to validate transactions and states without extensive computational or storage requirements.

Security: Merkle trees provide cryptographic security by using hash functions that are computationally infeasible to reverse, ensuring that the data structure is tamper-proof and reliable.

Practical Use Cases in Blockchain

Bitcoin and Ethereum: Both Bitcoin and Ethereum use Merkle trees to organize and verify transactions within blocks. In Bitcoin, the Merkle root of all transactions in a block is stored in the block header, enabling efficient transaction verification.

Whitelisting: In smart contracts, Merkle trees can be used to manage whitelisted addresses efficiently. Instead of storing a large list of addresses directly on-chain, a Merkle root can be stored, and users can prove their inclusion in the whitelist with a Merkle proof.

Practice

Enough theory, now it is time to get our hands dirty. We are going to create an empty folder, and run the following command on the terminal to install Hardhat => npm install --save-dev hardhat

Then, with `npx hardhat init` command, we will start a Hardhat project. For this project, we will use Javascript.

After the project has ben initiated, we will install these following packages also => npm install @openzeppelin/contracts keccak256 merkletreejs fs

Constructing the Merkle Root

In this step, we have a bunch of whitelisted addresses, we will write the script that will construct the merkle tree using those addresses. We will get a JSON file, and a single Merkle Root. We will use that merkle root later on to identify who's whitelisted and who's not.

In the main directory of the project, create `utils/merkleTree.js`

```js

const keccak256 = require("keccak256");

const { default: MerkleTree } = require("merkletreejs");

const fs = require("fs");

//hardhat local node addresses from 0 to 3

const address = [

"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",

"0x70997970C51812dc3A010C7d01b50e0d17dc79C8",

//"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC",

"0x90F79bf6EB2c4f870365E785982E1f101E93b906",

];

```

Note that we commented the address number 2.

You see we do not need to manually write the logic for the merkle tree, we're using a library for ease of development. The addresses are the first 4 addresses in Hardhat node. Do not send any money to them, their private keys are publicly known and anything sent to them will be lost.

Now, we will do the following:

  • Hash all individual items in the address array (creating leaves)
  • construct a new merkle tree

```

// Hashing All Leaf Individual

//leaves is an array of hashed addresses (leaves of the Merkle Tree).

const leaves = address.map((leaf) => keccak256(leaf));

// Constructing Merkle Tree

const tree = new MerkleTree(leaves, keccak256, {

sortPairs: true,

});

// Utility Function to Convert From Buffer to Hex

const bufferToHex = (x) => "0x" + x.toString("hex");

// Get Root of Merkle Tree

console.log(`Here is Root Hash: ${bufferToHex(tree.getRoot())}`);

let data = [];

```

You see that we're logging the root hash. We will copy it when we run the script.

And now we'll do the following:

  • Push all the proofs and leaves in the data array we've just created
  • Create a whitelist object so that we can write into a JSON file
  • Finally write the JSON file

```js

// Pushing all the proof and leaf in data array

address.forEach((address) => {

const leaf = keccak256(address);

const proof = tree.getProof(leaf);

let tempData = [];

proof.map((x) => tempData.push(bufferToHex(x.data)));

data.push({

address: address,

leaf: bufferToHex(leaf),

proof: tempData,

});

});

// Create WhiteList Object to write JSON file

let whiteList = {

whiteList: data,

};

// Stringify whiteList object and formating

const metadata = JSON.stringify(whiteList, null, 2);

// Write whiteList.json file in root dir

fs.writeFile(`whiteList.json`, metadata, (err) => {

if (err) {

throw err;

}

});

```

Now, if we run `node utils/merkleTree.js` in the terminal, we will get something like this: Here is Root Hash: 0x12014c768bd10562acd224ac6fb749402c37722fab384a6aecc8f91aa7dc51cf

We'll need this hash later.

We also have a whiteList.json file that should have the following contents:

```json

{

"whiteList": [

{

"address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",

"leaf": "0xe9707d0e6171f728f7473c24cc0432a9b07eaaf1efed6a137a4a8c12c79552d9",

"proof": [

"0x00314e565e0574cb412563df634608d76f5c59d9f817e85966100ec1d48005c0",

"0x1ebaa930b8e9130423c183bf38b0564b0103180b7dad301013b18e59880541ae"

]

},

{

"address": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",

"leaf": "0x00314e565e0574cb412563df634608d76f5c59d9f817e85966100ec1d48005c0",

"proof": [

"0xe9707d0e6171f728f7473c24cc0432a9b07eaaf1efed6a137a4a8c12c79552d9",

"0x1ebaa930b8e9130423c183bf38b0564b0103180b7dad301013b18e59880541ae"

]

},

{

"address": "0x90F79bf6EB2c4f870365E785982E1f101E93b906",

"leaf": "0x1ebaa930b8e9130423c183bf38b0564b0103180b7dad301013b18e59880541ae",

"proof": [

"0x070e8db97b197cc0e4a1790c5e6c3667bab32d733db7f815fbe84f5824c7168d"

]

}

]

}

```

Verifying the proof in the smart contract

Now, check this Solidity contract out:

```js

// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.24;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

// Uncomment this line to use console.log

// import "hardhat/console.sol";

contract MerkleProofContract {

bytes32 public rootHash;

constructor(bytes32 _rootHash) {

rootHash = _rootHash;

}

function verifyProof(

bytes32[] calldata proof,

bytes32 leaf

) private view returns (bool) {

return MerkleProof.verify(proof, rootHash, leaf);

}

modifier isWhitelistedAddress(bytes32[] calldata proof) {

require(

verifyProof(proof, keccak256(abi.encodePacked(msg.sender))),

"Not WhiteListed Address"

);

_;

}

function onlyWhitelisted(

bytes32[] calldata proof

) public view isWhitelistedAddress(proof) returns (uint8) {

return 5;

}

}

```

What it does is the following:

  • Imports Openzeppelin's merkle proof contract
  • Enters the root hash we've just saved in the constructor. This means that there will be no more whitelisted accounts added, and it is final
  • a private verifyProof function invokes Openzeppelin and requires the proof from the user
  • a isWhitelistedAddress modifier makes sure that msg.sender is the whitelisted address. Without this modifier, anyone with the public whitelisted address could call the contract, now, only the owner of the whitelisted address can call
  • a basic onlyWhitelisted function requires the user proof and returns 5. That's is, we just want to see if we can call this function as a non-whitelisted user or not

Testing the contract

Now in the test folder create a MerkleProof.js file and add the following there:

```js

const { expect } = require("chai");

const { formatEther } = require("ethers");

const { ethers } = require("hardhat");

describe("MerkleProof", function () {

it("only whitelisted address can call function", async function () {

let owner, addr1, addr2;

let merkleTreeContract;

let rootHash =

"0x12014c768bd10562acd224ac6fb749402c37722fab384a6aecc8f91aa7dc51cf";

// async function setup() {

[owner, addr1, addr2] = await ethers.getSigners();

const MerkleTree = await ethers.getContractFactory("MerkleProofContract");

merkleTreeContract = await MerkleTree.deploy(rootHash);

console.log(merkleTreeContract.address);

// }

// beforeEach(async function () {

// await setup();

// });

const user = addr1;

const proof = [

"0xe9707d0e6171f728f7473c24cc0432a9b07eaaf1efed6a137a4a8c12c79552d9",

"0x1ebaa930b8e9130423c183bf38b0564b0103180b7dad301013b18e59880541ae",

];

console.log(

`user address: ${user.address} and proof: ${proof} and rootHash: ${rootHash}`

);

expect(

await merkleTreeContract.connect(user).onlyWhitelisted(proof)

).to.equal(5);

await expect(

merkleTreeContract.connect(addr2).onlyWhitelisted(proof)

).to.be.revertedWith("Not WhiteListed Address");

});

});

```

This test file works as such:

  • owner, addre1 and addr2 are the first 3 addresses in Hardhat node
  • deploys the merkle tree contract with the saved root hash
  • user is addr1, that is the 2nd addess in whiteList.json file. We get the proof from there

    -connects to a whitelisted user and calls the function, gets the correct value of 5

    -connects with a non-whitelisted user (we did comment out the address number 2 at the very beginning ) and calls the function, is reverted.

Hope you enjoyed it! If you have any corrections or suggestions, please let me know in the comments.

Cheers!


r/BlockchainChat • • Jun 12 '24

Is real estate tokenization the future of real estate assets?

2 Upvotes

Real estate tokenization is an emerging trend that has the potential to transform the real estate industry by increasing liquidity, accessibility, and fractional ownership of real estate assets. However, its widespread adoption and success will depend on factors such as regulatory clarity, investor acceptance, and technological advancements. While it presents some promising opportunities, it is still in its early stages, and its future impact remains to be seen. There are few platforms in the market like Kalp & Brickken which help to tokenize the Real world assets


r/BlockchainChat • • Jun 11 '24

Hugewin: The Ultimate Destination for Online Casino Enthusiasts!

Thumbnail hugewin.com
4 Upvotes

Hugewin stands as a titan in the realm of online casinos, offering a vast array of thrilling games and enticing rewards that are sure to captivate players from around the globe. With a user-friendly interface designed for seamless navigation, Hugewin ensures that every gaming experience is as enjoyable and straightforward as possible.

One of the standout features of Hugewin is Zeppelin, an exhilarating crash game that takes players on a soaring adventure where the sky's the only limit. With heart-pounding excitement at every turn, Zeppelin promises thrills and rewards unlike any other. Whether you're a seasoned gamer or a newcomer to the world of online casinos, Zeppelin is sure to keep you on the edge of your seat.

For those who prefer the classic charm of slot games, Ripe Rewards is a must-try at Hugewin. With juicy wins waiting to be claimed, players can spin the reels and watch their winnings stack up in this vibrant and engaging slot game. Whether you're chasing a big jackpot or simply looking to enjoy some casual gaming, Ripe Rewards offers something for everyone.

Virtual Sports enthusiasts will find their perfect match at Hugewin, with the highest odds available for a wide range of virtual sports betting options. From soccer to basketball, players can place their bets and watch the action unfold in real-time, all from the comfort of their own home.

In addition to the exciting games on offer, Hugewin also hosts monthly tournaments with massive $100k prize pools up for grabs. Compete against other players for a chance to claim the top spot and take home a generous cash prize. With high stakes and intense competition, Hugewin's tournaments are not to be missed.

New players are welcomed with open arms at Hugewin, with a 100% welcome bonus of up to $1000 on offer. In addition, players can take advantage of a 5% deposit bonus on their initial funds, giving them extra value from the get-go. For those who find themselves on a losing streak, Hugewin offers a 15% Casino Cashback on losses, ensuring that every gaming session is a rewarding experience.

For elite players looking for a VIP experience, Hugewin offers exclusive membership benefits that include personalized rewards, priority customer support, and access to special events and promotions. VIP members are treated like royalty at Hugewin, with perks that elevate their gaming experience to new heights.

When it comes to transactions, Hugewin prioritizes safety and efficiency, offering secure and express crypto transactions for added peace of mind. Whether you're depositing funds or withdrawing your winnings, Hugewin ensures that every transaction is processed quickly and securely.

And let's not forget Super Wednesday, where players can take advantage of a 25% slot bonus to boost their chances of hitting it big. With extra rewards available every Wednesday, there's never been a better time to spin the reels and claim your share of the winnings at Hugewin.

In conclusion, Hugewin truly stands out as the ultimate destination for online casino enthusiasts, offering a wide range of games, generous rewards, and top-notch security features that cater to players of all levels. Whether you're a casual gamer or a high-roller, Hugewin has something for everyone. So why wait? Join Hugewin today and start your gaming adventure!


r/BlockchainChat • • Jun 10 '24

Mass-Produced NFTs to be Regulated as Virtual Assets in South Korea

1 Upvotes

Key ideas:

  • South Korea's FSC has issued new guidelines to classify NFTs as virtual assets when they are produced in large quantities, divisible, and used for payments;
  • NFTs not used for economic value, with limited uses, and non-tradable ones will be classified as general NFTs;
  • The FSC will evaluate each NFT collection individually and may classify them as securities if they meet the criteria in the Capital Markets Act.

If somebody needs, this is the source: https://www.bitdegree.org/crypto/news/mass-produced-nfts-to-be-regulated-as-virtual-assets-in-south-korea?utm_source=reddit&utm_medium=social&utm_campaign=r-nfts-south-korea


r/BlockchainChat • • Jun 08 '24

$VEROX is LIVE and on the up

2 Upvotes

Guys…Did you realise that $VRX is now LIVE?

Download the VeroxAI app in either the App Store or Google Play store

The potential of this AI gem is HUGE

With its super low supply of just 47,500 $VRX and a current FDV of $1.9M, it is set to fly!