This program emulates (un-)locking car's doors with car key.
Secure connecton is established over an insecure channel using ECDSA.
Implemented elliptic curve: Curve25519 (curve propeties here).
- HANDSHAKE: car key initiates connection by sending command (e.g. "Unlock doors") to the car;
- CHALLENGE: to make sure that command was sent by the trusted key, car sends signed (using car's private key) nonce to the key;
- RESPONSE: car key verifies car's signature and sends signed (using key's private key) nonce back to the car;
- VALIDATE: car verifies key's signature and executes command.
- ⭐ Star this repo.
- 📂 Clone this repo (e.g. via
git clone
).
git clone https://github.com/sokolcom/tp-blockchain-task05.git
- 🚀 Run
python3 src/main.py
in the repo directory to run the program.
python3 src/main.py