MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / executable_from_protocol

Method executable_from_protocol

Compiler/compilerLib.py:632–642  ·  view source on GitHub ↗
(cls, protocol)

Source from the content-addressed store, hash-verified

630
631 @classmethod
632 def executable_from_protocol(cls, protocol):
633 match = cls.match
634 if protocol in match:
635 protocol = match[protocol]
636 if protocol.find("bmr") == -1:
637 protocol = re.sub("^mal-", "malicious-", protocol)
638 protocol = re.sub("-online$", "", protocol)
639 if protocol == "emulate":
640 return protocol + ".x"
641 else:
642 return protocol + "-party.x"
643
644 @classmethod
645 def short_protocol_name(cls, protocol):

Callers 2

local_executionMethod · 0.95
remote_executionMethod · 0.95

Calls 1

subMethod · 0.45

Tested by

no test coverage detected