Skip to content

Commit

Permalink
Merge pull request #53 from iden3/fix/children-leaf
Browse files Browse the repository at this point in the history
Fix children position for 1 in leaf nodes
  • Loading branch information
vmidyllic authored Apr 9, 2024
2 parents 096193a + 7f120f9 commit 4e0232f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs/docs/services/rhs.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Note, that the Hash field of the Node struct is a hash of the Children field, ho
If identity holder wants to publish his identity state to RHS he needs to do the following:

1. Save the state of identity to RHS `{ Hash: state, Children: [ClaimsTreeRoot, RevocationTreeRoot, RootsTreeRoot] }`
2. Save the nodes of Revocation tree and Roots tree to RHS for the intermediate nodes `{ Hash: hash, Children: [left, right] }` where left and right are the hashes of the children of the node. And for the leaf nodes `{ Hash: hash, Children: [1, key, value] }`
2. Save the nodes of Revocation tree and Roots tree to RHS for the intermediate nodes `{ Hash: hash, Children: [left, right] }` where left and right are the hashes of the children of the node. And for the leaf nodes `{ Hash: hash, Children: [key, value, 1] }`

### Example with **off-chain RHS storage**:

Expand Down

0 comments on commit 4e0232f

Please sign in to comment.