diff options
| author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-05 16:00:43 +0100 | 
|---|---|---|
| committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-05 16:00:43 +0100 | 
| commit | 2cd6104d601cb3a064b7b67ecf097a8591c029dd (patch) | |
| tree | bd72e358304a48440ea5a694f75bcd6c418d13c7 /client | |
| parent | 05d351ac4b8bd46683caff13c971836fa5bd2073 (diff) | |
improved readiability
Diffstat (limited to 'client')
| -rw-r--r-- | client/verify.go | 8 | 
1 files changed, 7 insertions, 1 deletions
| 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 | 
