mirror of https://github.com/zcash/pasta.git
Change the directory in which the Pocklington proof files are created.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
a7aea2312c
commit
6280babe1b
|
@ -45,6 +45,10 @@ def requirement(fn,istrue):
|
|||
return istrue
|
||||
|
||||
def verify():
|
||||
try:
|
||||
os.mkdir('proof')
|
||||
except OSError as e:
|
||||
if e.errno != EEXIST: raise
|
||||
|
||||
try:
|
||||
s = set(map(Integer, readfile('primes').split()))
|
||||
|
@ -115,7 +119,7 @@ def verify_primes(V, s, needtofactor):
|
|||
proof += '<p>(%s)^2 > n.\n' % f
|
||||
proof += "<p>n is prime by Pocklington's theorem.\n"
|
||||
proof += '\n'
|
||||
writefile('../../../proof/%s.html' % n,proof)
|
||||
writefile('proof/%s.html' % n,proof)
|
||||
V.add(n)
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue