Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

This is only an early demo of decentralized timed-release encryption technology and its block index engine

Notifications You must be signed in to change notification settings

NexTokenTech/time-release-watcher-demo

Repository files navigation

Block Index Engine Demo

This is a block index engine (Demo) with postgreSQL to release and index decentrlaized timed-release encryption data.

Flask Backend

Directories

  • frontend - React app using for show datasets
  • Time-Release-Blockchain - Time release submodule using in SQLAlchemy operations

Files in Root Dir

  • app.py - the Flask app to provide web service for frontend react app. if running the Flask app with an ip and port, please use below shell script.
    python3 -m flask run --host=127.0.0.1 --port=5000
  • client_config.py - default configuration settings for current app and postgreSQL, you may add your customize configurations
  • dbmodel.py - models and keys defines for Block、Transaction and so on
  • decrypt_tools - tools for decrypting time release msg
  • model_tools - generate block and transaction model for operation

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Frontend Scripts

In the project's frontend directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

venv script

source ./venv/bin/activate
(venv) $ pip install -r requirements.txt
(venv) $ deactivate

Crpyto import error notice:

If you have installed pycryptodome as requirements.txt file show. Then you also have an error like 'No Module Found 'Crypto'', You should find your external lib,and find crypto. Refactor 'crypto' to 'Crypto',that will be ok.

About

This is only an early demo of decentralized timed-release encryption technology and its block index engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •