- 'Simplest' protocol that shows postponing effort.
This commit is contained in:
		
							parent
							
								
									dba0eab72b
								
							
						
					
					
						commit
						5d9e893a44
					
				
							
								
								
									
										19
									
								
								spdl/simplest.spdl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								spdl/simplest.spdl
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
 | 
			
		||||
secret k: Nonce;
 | 
			
		||||
const Alice,Bob,Charlie: Agent;
 | 
			
		||||
const ne: Nonce;
 | 
			
		||||
 | 
			
		||||
protocol simplest(I)
 | 
			
		||||
{
 | 
			
		||||
	role I
 | 
			
		||||
	{
 | 
			
		||||
		var x: Nonce;
 | 
			
		||||
		const n: Nonce;
 | 
			
		||||
 | 
			
		||||
		read(I,I, x);
 | 
			
		||||
		send(I,I, n, {n, x}k );
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
run simplest.I(Alice);
 | 
			
		||||
run simplest.I(Alice);
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user