From 2cd6104d601cb3a064b7b67ecf097a8591c029dd Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Thu, 5 Nov 2020 16:00:43 +0100 Subject: improved readiability --- client/verify.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/verify.go b/client/verify.go index c66e54c..8d64211 100644 --- a/client/verify.go +++ b/client/verify.go @@ -61,7 +61,13 @@ func VerifyInclusionProofV1(proof *stfe.StItem, rootHash, leafHash []byte) error for _, nh := range proof.InclusionProofV1.InclusionPath { path = append(path, nh.Data) } - return merkle.NewLogVerifier(rfc6962.DefaultHasher).VerifyInclusionProof(int64(proof.InclusionProofV1.LeafIndex), int64(proof.InclusionProofV1.TreeSize), path, rootHash, leafHash) + return merkle.NewLogVerifier(rfc6962.DefaultHasher).VerifyInclusionProof( + int64(proof.InclusionProofV1.LeafIndex), + int64(proof.InclusionProofV1.TreeSize), + path, + rootHash, + leafHash, + ) } // supportedScheme checks whether the client library supports the log's -- cgit v1.2.3