Пример #1
0
 def setUp(self):
     # Generate the keys
     ret = nacl.keygen()
     self.assertIn("pk", ret)
     self.assertIn("sk", ret)
     self.pk = ret["pk"]
     self.sk = ret["sk"]
Пример #2
0
 def setUp(self):
     # Generate the keys
     ret = nacl.keygen()
     self.assertIn('pk', ret)
     self.assertIn('sk', ret)
     self.pk = ret['pk']
     self.sk = ret['sk']