예제 #1
0
 def issue_cert(self, to_):
     cert_symbol = (self.name + ".2%s." % to_.name + common.get_random_str()).upper()
     result, message = mvs_rpc.issue_cert(self.name, self.password, to_.did_symbol, cert_symbol, "NAMING")
     if result != 0:
         print("failed to issue_cert: {}".format(message))
     assert (result == 0)
     return cert_symbol
예제 #2
0
 def issue_naming_cert(self, domain_symbol):
     cert_symbol = (domain_symbol + "." + common.get_random_str()).upper()
     result, message = mvs_rpc.issue_cert(self.name, self.password, self.did_symbol, cert_symbol, "NAMING")
     if result != 0:
         print("failed to issue_cert: {}".format(message))
     assert (result == 0)
     return cert_symbol