rm sign.txt before recovering

dev
MITSUNARI Shigeo 8 years ago
parent bc8beb9946
commit 1489aa21e7
  1. 4
      bls_smpl.py

@ -21,7 +21,7 @@ def recover(ids):
subprocess.check_call(cmd) subprocess.check_call(cmd)
def main(): def main():
m = "abc" m = "hello bls threshold signature"
n = 10 n = 10
ids = [1, 5, 3, 7] ids = [1, 5, 3, 7]
k = len(ids) k = len(ids)
@ -31,6 +31,8 @@ def main():
share(n, k) share(n, k)
for i in ids: for i in ids:
sign(m, i) sign(m, i)
verify(m, i)
subprocess.check_call(["rm", "sample/sign.txt"])
recover(ids) recover(ids)
verify(m) verify(m)

Loading…
Cancel
Save