コード例 #1
0
def sign_message_with_bls_key(message, seed):
    dependencies.install_module("mcl_signer")
    tool = path.join(dependencies.get_module_directory("mcl_signer"), "signer")

    try:
        signed_message = myprocess.run_process([tool, message, seed],
                                               dump_to_stdout=False)
        return signed_message
    except Exception:
        raise CannotSignMessageWithBLSKey()
コード例 #2
0
 def _get_llvm_path(self):
     return dependencies.get_module_directory("llvm")
コード例 #3
0
 def _get_soll_path(self):
     directory = dependencies.get_module_directory("soll")
     return path.join(directory, "soll")