Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

A simple and easy tool to perform a basic check of NPNT/ Digital Sky compliance. The App is a checklist to verify basic NPNT work and is limited to NPNT verification, PA, PIN check and Flight log signature Verification.

Notifications You must be signed in to change notification settings

iSPIRT/NPNT-Provisional-testing-tool

Repository files navigation

Note - Read before Use

This tool is deprecated and no longer in use. The current official NPNT test tool is sadly closed source and hosted at https://www.npnt-tool.qcin.org

Hence, this project is no longer active or being maintained.

Digital Sky Provisional Testing App [Deprecated]

Python: 3.6

A simple and easy tool to perform a basic check of NPNT/ Digital Sky compliance. The App is a checklist to verify basic NPNT work and is limited to NPNT verification, PA, PIN check and Flight log signature Verification.

Scope of Testing

The test is designed to be a double blind experiment to verify NPNT compliance. The app generates permission artefacts for a specific location (subject to DGCA testing place approval). The application generates various permission artefacts for assessment in a random order. Both the applicant and the testing authority are unaware of which permission artefacts are intended to pass or fail.

This double blind test ensures that the following are checked:

  • Incorrect Geofence check
  • Incorrect time limits check
  • Bad Pilot PIN check
  • Spurious permission artefact check
  • Valid Permission artefact check

Validation

These five test scenarios are the ones which will be tested by the applicant. After the observations of the RPAS behavior on all the scenarios are recorded, the applicant proceeds to check the flight log generation. The Flight log is generated on breaching the geofence set by a valid permission artefact. The Digital signature of the Flight log is then verified against the public key of the drone.

For Developers

The app is written in python 3.6. To run the app, download the repo or clone the repository using

git clone https://github.com/iSPIRT/NPNT-Provisional-testing-tool.git

install the requirements

pip install -r requirements.txt

Run the app

python npnt_testing_app.py

Examples -

Verify a pass case

sign the unsigned_Flight_Log.json in the tests directory using the sample keypair provided. In this case - sample_key_private.pem

from helpers import sign_log
sign_log("tests/unsigned_Flight_Log.json" , "tests/sample_key_private.pem")

This will generate a signed log in the same directory. You can verify the signature using

from helpers import verify_flight_log_signature
result = verify_flight_log_signature("tests/unsigned_Flight_Log-signed.json", "tests/sample_key_public.pem")

simple as that!

About

A simple and easy tool to perform a basic check of NPNT/ Digital Sky compliance. The App is a checklist to verify basic NPNT work and is limited to NPNT verification, PA, PIN check and Flight log signature Verification.

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •