Protocol

abstract class Protocol : Name, Comparable<Protocol>

An abstract location where computations can be placed.

A protocol simultaneously names a location and determines the (cryptographic) mechanism for executing the code placed at that location.

A protocol is a ProtocolName applied to a sequence of named arguments. The name and the arguments uniquely determine the protocol (see Protocol.equals).

Constructors

Protocol
Link copied to clipboard
fun Protocol()

Types

Companion
Link copied to clipboard
object Companion

Functions

authority
Link copied to clipboard
abstract fun authority(hostTrustConfiguration: HostTrustConfiguration): Label

Returns the authority label of this protocol given the authority labels of the participating hosts.

compareTo
Link copied to clipboard
operator override fun compareTo(other: Protocol): Int
equals
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
override fun hashCode(): Int
toDocument
Link copied to clipboard
open override fun toDocument(): Document

Properties

arguments
Link copied to clipboard
abstract val arguments: Map<String, Value>

The named arguments applied to protocolName.

hosts
Link copied to clipboard
val hosts: HostSetValue

Hosts involved in this protocol.

internalInputPorts
Link copied to clipboard
val internalInputPorts: Map<Host, InputPort>
internalOutputPorts
Link copied to clipboard
val internalOutputPorts: Map<Host, OutputPort>
name
Link copied to clipboard
override val name: String
nameCategory
Link copied to clipboard
override val nameCategory: String
protocolName
Link copied to clipboard
abstract val protocolName: ProtocolName

The name of the (cryptographic) protocol.

Inheritors

ABY
Link copied to clipboard
Plaintext
Link copied to clipboard
Commitment
Link copied to clipboard
ZKP
Link copied to clipboard