From 22c6705312b45e838e536e4feb69efb579bbf4c3 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 5 Apr 2022 14:44:53 -0600 Subject: [PATCH] rename storageproofs to por (#74) --- dagger/{storageproofs => por}/README.md | 0 dagger/{storageproofs => por}/benchmark.nim | 0 dagger/{storageproofs => por}/example.txt | 0 dagger/{storageproofs/bls.nim => por/por.nim} | 0 .../{storageproofs/testbls.nim => por/testpor.nim} | 12 ++++++------ 5 files changed, 6 insertions(+), 6 deletions(-) rename dagger/{storageproofs => por}/README.md (100%) rename dagger/{storageproofs => por}/benchmark.nim (100%) rename dagger/{storageproofs => por}/example.txt (100%) rename dagger/{storageproofs/bls.nim => por/por.nim} (100%) rename dagger/{storageproofs/testbls.nim => por/testpor.nim} (75%) diff --git a/dagger/storageproofs/README.md b/dagger/por/README.md similarity index 100% rename from dagger/storageproofs/README.md rename to dagger/por/README.md diff --git a/dagger/storageproofs/benchmark.nim b/dagger/por/benchmark.nim similarity index 100% rename from dagger/storageproofs/benchmark.nim rename to dagger/por/benchmark.nim diff --git a/dagger/storageproofs/example.txt b/dagger/por/example.txt similarity index 100% rename from dagger/storageproofs/example.txt rename to dagger/por/example.txt diff --git a/dagger/storageproofs/bls.nim b/dagger/por/por.nim similarity index 100% rename from dagger/storageproofs/bls.nim rename to dagger/por/por.nim diff --git a/dagger/storageproofs/testbls.nim b/dagger/por/testpor.nim similarity index 75% rename from dagger/storageproofs/testbls.nim rename to dagger/por/testpor.nim index c1c2c8b7..718ee9d7 100644 --- a/dagger/storageproofs/testbls.nim +++ b/dagger/por/testpor.nim @@ -7,7 +7,7 @@ ## This file may not be copied, modified, or distributed except according to ## those terms. -import bls +import por import benchmark import strutils @@ -16,22 +16,22 @@ const querylen = 22 proc testbls() : bool = benchmark "Key generation": - let (spk, ssk) = bls.keygen() + let (spk, ssk) = por.keygen() benchmark "Auth generation (s=" & $sectorsperblock & ")": - let (tau, authenticators) = bls.setup(ssk, sectorsperblock, "example.txt") + let (tau, authenticators) = por.setup(ssk, sectorsperblock, "example.txt") #echo "Auth: ", authenticators benchmark "Generating challenge (q=" & $querylen & ")": - let q = bls.generateQuery(tau, spk, querylen) + let q = por.generateQuery(tau, spk, querylen) #echo "Generated!" #, " q:", q benchmark "Issuing proof": - let (mu, sigma) = bls.generateProof(q, authenticators, spk, sectorsperblock, "example.txt") + let (mu, sigma) = por.generateProof(q, authenticators, spk, sectorsperblock, "example.txt") #echo "Issued!" #, " mu:", mu, " sigma:", sigma benchmark "Verifying proof": - result = bls.verifyProof(tau, q, mu, sigma, spk) + result = por.verifyProof(tau, q, mu, sigma, spk) echo "Result: ", result let r = testbls()