- Start of simple files.
This commit is contained in:
parent
2edf686a3e
commit
9010e37c33
17
spdl/helloworld.spdl
Normal file
17
spdl/helloworld.spdl
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
usertype String, World;
|
||||||
|
secret HelloWorld: String;
|
||||||
|
|
||||||
|
protocol hw(initiator,world)
|
||||||
|
{
|
||||||
|
role initiator
|
||||||
|
{
|
||||||
|
send_1(initiator, world, HelloWorld);
|
||||||
|
claim_2(initiator, Secret, HelloWorld);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const Alice, Bob: Agent;
|
||||||
|
const Earth, Mars: World;
|
||||||
|
|
||||||
|
run hw.initiator(Agent,World);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user