From 88cd01cb0d1e66be70190a0e2aa53b2599e0e967 Mon Sep 17 00:00:00 2001 From: Bob Callaway <bobcallaway@users.noreply.github.com> Date: Thu, 21 Jan 2021 18:18:12 -0500 Subject: [PATCH] use result rather than rootHash to compute inclusion proof (#127) Signed-off-by: Bob Callaway <bcallawa@redhat.com> --- cmd/cli/app/verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cli/app/verify.go b/cmd/cli/app/verify.go index d83d038..0495f57 100644 --- a/cmd/cli/app/verify.go +++ b/cmd/cli/app/verify.go @@ -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) -- GitLab