Skip to content

Generate merkle proof of given addresses which can be used in solidity

License

Notifications You must be signed in to change notification settings

chuwt/merkletreepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

merkletreepy

Generating the proof and root which can be used for merkle validation in Solidity for airdrop.

usage

# add your white list
wl = WhiteList([
        "0x0000000000000000000000000000000000000000",
        "0x0000000000000000000000000000000000000001",
        "0x0000000000000000000000000000000000000002",
        "0x0000000000000000000000000000000000000003",
        "0x0000000000000000000000000000000000000004",
    ])

# get root
print(wl.get_root())
# get proof of given address
print(wl.get_proof_by_address("0x0000000000000000000000000000000000000000"))

checking with merkletreejs

checking with merkletreejs: website

thanks

About

Generate merkle proof of given addresses which can be used in solidity

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published