Skip to content
Snippets Groups Projects
Unverified Commit 88cd01cb authored by Bob Callaway's avatar Bob Callaway Committed by GitHub
Browse files

use result rather than rootHash to compute inclusion proof (#127)

parent 6c2e068a
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ func (v *verifyCmdOutput) String() string {
result, _ := hex.DecodeString(v.EntryUUID)
for i, h := range v.Hashes {
if i < inner && (v.Index>>uint(i))&1 == 0 {
left = []byte(hex.EncodeToString([]byte(v.RootHash)))
left = result
right, _ = hex.DecodeString(h)
} else {
left, _ = hex.DecodeString(h)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment