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

some usage issues #88

Open
Han-YLun opened this issue Aug 22, 2023 · 0 comments
Open

some usage issues #88

Han-YLun opened this issue Aug 22, 2023 · 0 comments

Comments

@Han-YLun
Copy link

Han-YLun commented Aug 22, 2023

I use this code

const { MerkleTree } = require('merkletreejs')
const keccak256 = require('keccak256')

const leaves =     [
    "0x7556677ca88d96B2709954ddf0A2C808e5A116D589",
    "0x7556677ca88d96B2709954f0Add2C808e5A116D339"
].map(keccak256)
const tree = new MerkleTree(leaves, keccak256,{ hashLeaves: true,sortPairs:true })
console.log(tree.toString("hex"))

result:
image

i use website ,result is:
image

image

why is it different?

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

No branches or pull requests

1 participant