How It Works
The airdrop system combines off-chain data processing with on-chain verification through Merkle trees:
Data Synchronization:
The WENBlocks server runs the syncnode.py script to synchronize with XENBlocks: This includes the XNM, X.BLK, and XUNI holdings of users.
Save and Generate Merkle Tree:
The fetched data is saved in a CSV file, which is then used to generate a Merkle Tree. This Merkle Tree is a cryptographic structure that allows for efficient and secure verification of the airdrop data:
Push to Smart Contract:
The Merkle root (a unique cryptographic representation of the Merkle Tree) is pushed to the WENBlocks smart contract. This ensures that the airdrop data is securely submitted and verified on-chain: def build_merkle_tree(elements, merkle_tree={}):
Last updated