From bc40deb3d2d8517f3755b3b134120d31b9693ca1 Mon Sep 17 00:00:00 2001 From: Jim Zhang Date: Tue, 23 Jul 2024 12:57:50 -0400 Subject: [PATCH] Update inline comments for the merkle tree structure Signed-off-by: Jim Zhang --- zkp/golang/pkg/core/merkletree.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zkp/golang/pkg/core/merkletree.go b/zkp/golang/pkg/core/merkletree.go index d05fe7f..70d47af 100644 --- a/zkp/golang/pkg/core/merkletree.go +++ b/zkp/golang/pkg/core/merkletree.go @@ -25,13 +25,13 @@ import "math/big" // // The tree is built from the root node, at level 0, down to the leaf nodes. // -// root level 0 -// / \ -// e f level 1 -// / \ / \ -// a b c d level 2 -// / \ / \ / \ / \ -// 1 2 3 4 5 - - - level 3 +// root level 0 +// / \ +// e f level 1 +// / \ / \ +// a b c d level 2 +// / \ / \ / \ / \ +// 1 2 3 4 5 - - - level 3 type SparseMerkleTree interface { // Root returns the root hash of the tree Root() NodeIndex