improving benchmark messages

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2021-09-27 10:42:39 +02:00 committed by Dmitriy Ryajov
parent 0c5a581c5a
commit 7112570b3f
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -18,19 +18,19 @@ proc testbls() : bool =
benchmark "Key generation":
let (spk, ssk) = bls.keygen()
benchmark "Auth generation":
benchmark "Auth generation (s=" & $sectorsperblock & ")":
let (tau, authenticators) = bls.setup(ssk, sectorsperblock, "example.txt")
#echo "Auth: ", authenticators
benchmark "Generating challenge...":
benchmark "Generating challenge (q=" & $querylen & ")":
let q = bls.generateQuery(tau, spk, querylen)
#echo "Generated!" #, " q:", q
benchmark "Issuing proof...":
benchmark "Issuing proof":
let (mu, sigma) = bls.generateProof(q, authenticators, spk, sectorsperblock, "example.txt")
#echo "Issued!" #, " mu:", mu, " sigma:", sigma
benchmark "Verifying proof...":
benchmark "Verifying proof":
result = bls.verifyProof(tau, q, mu, sigma, spk)
echo "Result: ", result