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

Modify/fmt leaf hash calculation #912

Merged
merged 80 commits into from
Mar 12, 2023

Conversation

lpoli
Copy link
Contributor

@lpoli lpoli commented Jan 14, 2023

Changes

This PR hash changes in both blobber and validator.

  1. Leaf hash calculation of fixedMerkleTree is changed to be flat hash of content rather than being compactmerkletree.
  2. Add validation merkle tree
  3. Add actual file hash signature and validaiton root signature to the reference object
  4. Replace content hash with validation root

Fixes

Tests

Tasks to complete before merging PR:

  • Ensure system tests are passing. If not Run them manually to check for any regressions 📋
  • Do any new system tests need added to test this change? do any existing system tests need updated? If so create a PR at 0chain/system_test
  • Merge your system tests PR to master AFTER merging this PR

Associated PRs (Link as appropriate):

@service-0chain
Copy link
Collaborator

Manual system tests [cancelled] with the following config

config value
tests skipped FALSE
system-tests modify/fmt-leaf-hash-calculation
gosdk modify/fmt-leaf-hash-calculation
zboxcli modify/fmt-leaf-hash-calculation
zwalletcli staging
0chain staging
blobber modify/fmt-leaf-hash-calculation
authorizer staging
0box staging
0block staging
0dns staging
explorer staging
0proxy staging
0search staging

@lpoli lpoli requested a review from peterlimg March 5, 2023 15:35
@service-0chain
Copy link
Collaborator

Manual system tests [success] with the following config

config value
tests skipped ABILITY TO SKIP TESTS IS DISABLED. SKIP_TESTS OPTION IGNORED.
system-tests modify/fmt-leaf-hash-calculation
gosdk modify/fmt-leaf-hash-calculation
zboxcli modify/fmt-leaf-hash-calculation
zwalletcli staging
0chain staging
blobber modify/fmt-leaf-hash-calculation
authorizer staging
0box staging
0block staging
0dns staging
explorer staging
0proxy staging
0search staging

Copy link
Member

@dabasov dabasov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@service-0chain
Copy link
Collaborator

Manual system tests [failure] with the following config

config value
tests skipped ABILITY TO SKIP TESTS IS DISABLED. SKIP_TESTS OPTION IGNORED.
system-tests modify/fmt-leaf-hash-calculation
gosdk modify/fmt-leaf-hash-calculation
zboxcli modify/fmt-leaf-hash-calculation
zwalletcli staging
0chain staging
blobber modify/fmt-leaf-hash-calculation
authorizer staging
0box staging
0block staging
0dns staging
explorer staging
0proxy staging
0search staging

@Kishan-Dhakan Kishan-Dhakan merged commit fa0b557 into staging Mar 12, 2023
@Kishan-Dhakan Kishan-Dhakan deleted the modify/fmt-leaf-hash-calculation branch March 12, 2023 21:19
peterlimg added a commit that referenced this pull request Mar 13, 2023
* staging:
  Modify/fmt leaf hash calculation (#912)
  Validator health (#994)
peterlimg added a commit that referenced this pull request Mar 13, 2023
* staging:
  Modify/fmt leaf hash calculation (#912)
  Validator health (#994)
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.

Nil tickets
6 participants