mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-07 16:03:13 +00:00
better proc names
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
6559ff6f04
commit
4ed5ba18ec
@ -174,7 +174,7 @@ proc generateProof(q: openArray[QElement], authenticators: openArray[BigInt], sp
|
|||||||
|
|
||||||
return (mu, sigma)
|
return (mu, sigma)
|
||||||
|
|
||||||
proc Verify_two(tau: Tau, q: openArray[QElement], mus: openArray[BigInt], sigma: BigInt, spk: PublicKey): bool =
|
proc verifyProof(tau: Tau, q: openArray[QElement], mus: openArray[BigInt], sigma: BigInt, spk: PublicKey): bool =
|
||||||
# TODO: check that values are in range
|
# TODO: check that values are in range
|
||||||
let N = spk.getModulus()
|
let N = spk.getModulus()
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ proc test() : bool =
|
|||||||
echo "Issued!", " mu:", mu, " sigma:", sigma
|
echo "Issued!", " mu:", mu, " sigma:", sigma
|
||||||
|
|
||||||
echo "Verifying proof..."
|
echo "Verifying proof..."
|
||||||
result = pos.Verify_two(tau, q, mu, sigma, spk)
|
result = pos.verifyProof(tau, q, mu, sigma, spk)
|
||||||
echo "Result: ", result
|
echo "Result: ", result
|
||||||
|
|
||||||
randomize()
|
randomize()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user