Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 807 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 807 Bytes

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