From 7f120f90bf0bef24d67f12bb01d43895fb275117 Mon Sep 17 00:00:00 2001 From: daveroga Date: Tue, 9 Apr 2024 16:16:48 +0200 Subject: [PATCH] fix children position for 1 in leafs --- mkdocs/docs/services/rhs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs/docs/services/rhs.md b/mkdocs/docs/services/rhs.md index d5cc16d..fca63bb 100644 --- a/mkdocs/docs/services/rhs.md +++ b/mkdocs/docs/services/rhs.md @@ -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**: