Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcmfernandes/ofepj
Optimistic Fair Exchange Protocol implementation in Java.
https://github.com/jcmfernandes/ofepj
Last synced: 14 days ago
JSON representation
Optimistic Fair Exchange Protocol implementation in Java.
- Host: GitHub
- URL: https://github.com/jcmfernandes/ofepj
- Owner: jcmfernandes
- Created: 2012-12-17T20:32:30.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-17T21:13:54.000Z (about 12 years ago)
- Last Synced: 2024-10-28T01:11:40.649Z (about 2 months ago)
- Language: Java
- Homepage:
- Size: 148 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Optimistic Fair Exchange Protocol in Java
This is a simple implementation of the OFE protocol that I did for a graduate software security course. It was not severely tested but granted me a good score. Debug mode (`-d`) helps a bit to prove its robustness.
## Compiling
Use the provided ANT build file to build the application.
`$> ant`
This will create all class files inside the 'bin' directory.
## Using
After compiling the application, you have to generate key-pairs. To do this use the `-gk` command line argument.
The trusted third-party has to have the fixed identity `TTP`. Suppose you want Alice to have identity `A` and Bob to have identity `B`. You have to do the following to create their keys:Beware, identities are case-sensitive!
`$> ./run -gk TTP && ./run -gk A && ./run -gk B`
Run the program with flag `-h` to see the set of possible options.
Bellow is a simple execution example. Assuming you already have created the key-pairs previously, do the following:Run at different terminals to see the execution in parallel.
`$> ./run -ttp -lp 5000`
`$> ./run -b -bi B -lp 5001 -ta localhost:5000`
`$> ./run -a -ai A -bi B -ba localhost:5001 -ta localhost:5000`To enable the debug mode append flag `-d`.