CommitmentProtocolHashReplicaInterpreter

Commitment protocol interpreter for hash replica hosts.

Constructors

fun CommitmentProtocolHashReplicaInterpreter(program: ProgramNode, protocolAnalysis: ProtocolAnalysis, runtime: ViaductProcessRuntime)

Types

CommitmentCell
Link copied to clipboard
inner class CommitmentCell(bytes: List<Byte>) : CommitmentProtocolHashReplicaInterpreter.CommitmentObject
CommitmentObject
Link copied to clipboard
abstract class CommitmentObject
CommitmentVector
Link copied to clipboard
inner class CommitmentVector(size: Int, defaultValue: List<Byte>) : CommitmentProtocolHashReplicaInterpreter.CommitmentObject

Functions

buildExpressionObject
Link copied to clipboard
open suspend override fun buildExpressionObject(protocol: Protocol, expr: AtomicExpressionNode): CommitmentProtocolHashReplicaInterpreter.CommitmentObject
buildObject
Link copied to clipboard
open suspend override fun buildObject(className: ClassName, typeArguments: List<ValueType>, arguments: List<AtomicExpressionNode>): CommitmentProtocolHashReplicaInterpreter.CommitmentObject
open suspend override fun buildObject(protocol: Protocol, className: ClassName, typeArguments: List<ValueType>, arguments: List<AtomicExpressionNode>): CommitmentProtocolHashReplicaInterpreter.CommitmentObject
getContextMarker
Link copied to clipboard
open override fun getContextMarker(): Int
getNullObject
Link copied to clipboard
open override fun getNullObject(): CommitmentProtocolHashReplicaInterpreter.CommitmentObject
open override fun getNullObject(protocol: Protocol): CommitmentProtocolHashReplicaInterpreter.CommitmentObject
popContext
Link copied to clipboard
open suspend override fun popContext()
popFunctionContext
Link copied to clipboard
open suspend override fun popFunctionContext()
pushContext
Link copied to clipboard
open suspend override fun pushContext()
pushFunctionContext
Link copied to clipboard
open suspend override fun pushFunctionContext(arguments: PersistentMap<ParameterNode, Pair<Protocol, FunctionArgumentNode>>)
restoreContext
Link copied to clipboard
open suspend override fun restoreContext(marker: Int)
runGuard
Link copied to clipboard
open suspend override fun runGuard(expr: AtomicExpressionNode): Value
open suspend override fun runGuard(protocol: Protocol, expr: AtomicExpressionNode): Value
runLet
Link copied to clipboard
open suspend override fun runLet(stmt: LetNode)
open suspend override fun runLet(protocol: Protocol, stmt: LetNode)
runOutput
Link copied to clipboard
open suspend override fun runOutput(stmt: OutputNode)
open suspend override fun runOutput(protocol: Protocol, stmt: OutputNode)
runRead
Link copied to clipboard
fun runRead(read: ReadNode): List<Byte>
runReceive
Link copied to clipboard
open suspend override fun runReceive(sender: LetNode, sendProtocol: Protocol, receiver: SimpleStatementNode, recvProtocol: Protocol, events: ProtocolCommunication)
runSend
Link copied to clipboard
open suspend override fun runSend(sender: LetNode, sendProtocol: Protocol, receiver: SimpleStatementNode, recvProtocol: Protocol, events: ProtocolCommunication)
runSimpleStatement
Link copied to clipboard
open suspend override fun runSimpleStatement(protocol: Protocol, stmt: SimpleStatementNode)
runUpdate
Link copied to clipboard
open suspend override fun runUpdate(stmt: UpdateNode)
open suspend override fun runUpdate(protocol: Protocol, stmt: UpdateNode)

Properties

availableProtocols
Link copied to clipboard
open override val availableProtocols: Set<Protocol>
program
Link copied to clipboard
val program: ProgramNode