Giter VIP home page Giter VIP logo

anss's Introduction

ANSS Course

This is a demo for the ANSS Course.

It is heavily based on the vehicle sharing system HERMES: Scalable, Secure, and Privacy-Enhancing Vehicular Sharing-Access System and the group signature scheme Linkable Spontaneous Anonymous Group Signature for Ad Hoc Groups.

In the original HERMES system, the session keys are forwarded by the vehicle owners to the service providers, which means that the session keys might be chenged to a fake one by vehicle owners. So, the group signature scheme is used to ensure that the session keys are not changed when it reaches the service providers. Besides, a trusted authority is introduced to mantain the public key list, and TA will mask the public key list to make sure that even if the VSSP knows the public key list, it cannot tell which user is in which group. (Try to reach the group signature based zero-knowledge proof.)

Stuff used in this demo

  • ECDSA ECDSA cryptography python library.
  • The group signature scheme is implemented based on the implementation of Linkable Spontaneous Anonymous Group Signature for Ad Hoc Groups.

Structure of the demo

This demo consists of the following parts:

  • Trusted Authority -- The trusted authority is a central authority that is trusted by all the participants. It is responsible for the management of the group and public keys list distribution.
  • Consumer -- The consumer is a participant that wants to join the group. It is responsible for generation of signature of the session keys which is used to make sure the session key is valid and unchanged when it reaches the VSSP.
  • VSSP(Vehicle Sharing Service Provider) -- The VSSP is responsible for verifying the signature of the group signature is valid and is signed by the trusted consumer.

How to run the demo

First, the consumer needs to run the registration.py script, to register itself to the trusted authority. It will generate a private key and a public key, which will be sent to the trusted authority. The generated keys will be stored in the consumer's local directory.

python registration.py

Then, the trusted authority will generate a secure random group key and a public key as a mask for the consumer's public key. The consumer's public key will be masked by the private key of the trusted authority. The masked public key list will be public.

python TA.py

The consumer will run the consumer.py script, which will generate a signature of the session key. The consumer will send the signature to the VSSP. The VSSP will verify the signature and the session key is valid and unchanged by using the masked public key list.

python consumer.py

The VSSP will run the VSSP.py script, which will verify the signature of the group signature.

python VSSP.py

anss's People

Contributors

jameryoung avatar jamerryshan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.