Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
33 views

What is the most efficient way of whitelisting at this moment in solidity?

Normal whitelisting setter functions are the most basic ones, I came across two more ways, Merkle Tree and signature-based whitelisting. The question I had is: Are the gas usage differences among ...
Zartaj Afser's user avatar
  • 5,304
1 vote
1 answer
63 views

How can a bytes32[] variable have a custom method (i.e., verifyCalldata)?

Code: https://www.contractreader.io/contract/mainnet/0x0C7D4bdA40CF78F9F1BAf6e3D5774f1E22c9CC4B My question is about this verifyCalldata() call: function verifyAddress( uint256 _projectId, ...
Donn Lee's user avatar
  • 113
1 vote
0 answers
148 views

BLUR airdrop claim explained - embedding a proof into a transaction

Recently, I saw that Blur had a twitter dependent airdrop. So basically you had to tweet and then you would get the option to claim tokens. I went to analyze the code, but it is overwhelming for me. ...
NFT_king's user avatar
3 votes
1 answer
807 views

Merkle tree airdrop how to build

I am writing an ERC20 token contract (contract token) with a mint of 2 million tokens. I am also writing a Merkle tree airdrop contract and sending it to this contract (contract Merkle tree). So, let'...
Ingrosso's user avatar
1 vote
1 answer
113 views

Smart Contract: false Transaction mined but execution failed (Merkle trees)

I'm trying to implement a smart contract whitelist using Merkle trees. I have been following along This tutorial. However, instead of using the generate part, I used the online tool here: https://lab....
JamesG's user avatar
  • 131
0 votes
1 answer
383 views

How to compute witness for Merkle tree proof using Zokrates?

I am trying to learn how Zero Knowledge proof for Merkle tree verification work. Therefore I am using this example from Zokrates: import "hashes/pedersen/512bit" as hash; import "hashes/...
Dakata's user avatar
  • 255
0 votes
1 answer
34 views

Is there a way to prove that a previous transaction was mined in solidity?

Context We are working on a charity NFT, and we want to gate minting to those who have ALREADY donated to the charity by sending ETH to the charity wallet. This makes things cleaner for tax write off ...
Zachary Denham's user avatar
1 vote
1 answer
546 views

Python Merkle Tree Libraries Don't Produce The Same Merkle Root As Node.js's "merkletreejs"

I have been trying to create merkle tree proofs in python. In a whitelisted NFT project, I've used npm's merkletreejs which is a JavaScript library and it worked beautifully. Here is the Github page ...
ChristianOConnor's user avatar
1 vote
1 answer
2k views

use javascript merkle tree to generate hex proof for solidity merkletree validation

Here is my js code of generating hex proof for solidity verification const express = require('express') const { MerkleTree } = require('merkletreejs'); const { bufferToHex } = require('ethereumjs-util'...
Poutine's user avatar
  • 17
0 votes
1 answer
29 views

Merkletree proof

in js i want array like this let arr = ["a","b","c"] but i am getting arr = ['a','b','c'] is there any way to do this? Notes : it's for merkletree to send proof through ...
Gajeel Redfox's user avatar