Skip to content

About

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

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

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

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages