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

修改MerkleProof庫中的文字說明 #704

Merged
merged 1 commit into from May 12, 2024

Conversation

kiraliwhite
Copy link
Contributor

使用MerkleProof庫來驗證時,輸入的變數是地址0的Hash,是因為上述文章使用了hashLeaves這個選項。

What type of PR is this (这是什么类型的PR)

  • Typo(勘误)
  • BUG(程序错误)
  • Improvement(提升)
  • Feature(新特性)

Which issue(s) this PR fixes(Optional) (这个PR 修复了什么问题 (可选择))

  • resolve(修复) : 更正文章內描述

What this PR does / why we need it (这个PR 做了什么/ 我们为什么需要这个PR)

使用MerkleProof庫來驗證時,輸入的變數是地址0的Hash,是因為上述文章使用了hashLeaves這個選項。
@kiraliwhite
Copy link
Contributor Author

我使用文檔內的程式碼進行測試,是需要使用到地址Hash return才為true,否則會報錯。
截圖 2024-04-10 下午12 05 52

Root:
"0xeeefd63003e0e702cb41cd0043015a6e26ddb38073cc6ffeb0ba3e808ba8c097"

Proof:
["0xdfbe3e504ac4e35541bebad4d0e7574668e16fefa26cd4172f93e18b59ce9486","0x9d997719c0a5b5f6db9b8ac69a988be57cf324cb9fffd51dc2c37544bb520d65"]

Leave's Hash
"0x04a10bfd00977f54cc3450c9b25c9b3a502a089eba0097ba35fc33c4ea5fcb54"

@AmazingAng
Copy link
Owner

lgtm

@AmazingAng AmazingAng merged commit c0f4f94 into AmazingAng:main May 12, 2024
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 this pull request may close these issues.

None yet

2 participants