Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a airdrop address list verification process #15

Closed
javier123454321 opened this issue Dec 17, 2021 · 0 comments · Fixed by #19
Closed

Create a airdrop address list verification process #15

javier123454321 opened this issue Dec 17, 2021 · 0 comments · Fixed by #19
Assignees

Comments

@javier123454321
Copy link
Collaborator

I think that the way that ENS domains did it makes sense
image

How we compute the input amount of chain and place it in the proof is done this way:
bytes32 leaf = keccak256(abi.encodePacked(msg.sender, amount));
the leaf is the amount + the sender in a hashed keypair.

The merkle tree is computed off chain and only the proof is cerified on chain. This seems the most secure way to do on-chain proof.

They have a merkleproof library contract:
https://etherscan.io/address/0xc18360217d8f7ab5e7c516566761ea12ce7f9d72#code#F16#L1

@javier123454321 javier123454321 self-assigned this Dec 20, 2021
javier123454321 added a commit to javier123454321/valorize_contracts that referenced this issue Dec 20, 2021
javier123454321 added a commit to javier123454321/valorize_contracts that referenced this issue Dec 20, 2021
javier123454321 added a commit to javier123454321/valorize_contracts that referenced this issue Dec 21, 2021
@javier123454321 javier123454321 linked a pull request Dec 23, 2021 that will close this issue
javier123454321 added a commit that referenced this issue Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant