Skip to content

sokolcom/tp-blockchain-task05

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TP BLOCKCHAIN TASK #05

LOCKING/UNLOCKING A CAR EMULATION

What is it? 👀

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).

Communication protocol 📜

  1. HANDSHAKE: car key initiates connection by sending command (e.g. "Unlock doors") to the car;
  2. CHALLENGE: to make sure that command was sent by the trusted key, car sends signed (using car's private key) nonce to the key;
  3. RESPONSE: car key verifies car's signature and sends signed (using key's private key) nonce back to the car;
  4. VALIDATE: car verifies key's signature and executes command.

protocol

Usage 🌍

  1. ⭐ Star this repo.
  2. 📂 Clone this repo (e.g. via git clone).
git clone https://github.com/sokolcom/tp-blockchain-task05.git
  1. 🚀 Run python3 src/main.py in the repo directory to run the program.
python3 src/main.py

4 . 🔍 Example output:
example

About

Emulation of the (un-)locking a car using ECDSA

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages