working on yield

parent fd8f6385
...@@ -230,12 +230,22 @@ def testVerifyVRF(): ...@@ -230,12 +230,22 @@ def testVerifyVRF():
status = verifyVRF(pk,hash,proof,seed2) status = verifyVRF(pk,hash,proof,seed2)
print(status) print(status)
class generator:
def __init__(self):
self.todoList = [self.gen]
def gen(self):
x=0
while True:
x+=1
self.todoList.insert(0,self.gen)
yield x
if __name__ == '__main__': if __name__ == '__main__':
# testSortition() # testSortition()
# testVerifyVRF() # testVerifyVRF()
testVerifySort() # testVerifySort()
m = generator()
for i n
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment