Skip to content

SecureDocs uses blockchain to ensure document integrity and traceability. It integrates Chainlink for automation and ERC-1400 tokens for access control, providing a secure, decentralized document management system. Technologies include ZkSync for scalability and Chainlink for real-time data verification.

Notifications You must be signed in to change notification settings

SecureDocsChain/SecureDocsNotary

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SecureDocsNotary

SecureDocsNotary is the front-end application for document verification within the SecureDocs project. This application allows users to verify the integrity and authenticity of documents using blockchain technology.

Frontend

index.js

This page serves as the entry point of the application, offering users the option to go to the login page.

verifierLogin.js

This page is used for logging in with Web3Auth. After login, the application checks if the user has an account in the database. If the account exists, the user is redirected to the home page (home.js). If not, the user is redirected to the sign-up page (verifierSignup.js) to create an account.

verifierSignup.js

This page allows new verifiers to sign up and create an account. Users need to provide necessary details to complete their registration and gain access to the verification functionalities.

home.js

This page is the main dashboard for verifiers. After logging in, verifiers can view and manage documents that need verification.

verify/[documentId].js

This page allows verifiers to review the details of a document and perform the verification process. Verifiers can approve documents and mint a new NFT to the secure vault of the user.

account.js

This page allows verifiers to see their personal information.

Installation

To set up and run the SecureDocsNotary application locally, follow these steps:

1. Clone the Repository:

git clone https://github.com/SecureDocsChain/SecureDocsNotary.git

2. Install Dependencies:

Navigate to the project directory and install the required dependencies.

cd SecureDocsNotary
npm install

3. Run the Application:

Start the development server.

npm run dev

4. Open in Browser:

Open your browser and navigate to http://localhost:3000 to see the application in action.

Usage

Logging In

  1. Navigate to the login page

    • Go to the verifierLogin.js page.
    • Click on the login option to authenticate using Web3Auth.
  2. Authentication Check

    • After logging in, the application will check if you have an account in the database.
    • If your account exists, you will be redirected to the home page (home.js).
    • If you do not have an account, you will be redirected to the sign-up page (verifierSignup.js).
  3. KYC

    • KYC are done manualy, you will need to whitelist the user directly on the smart-contract SecureVaultFactory.sol with the function registerVerifier(address verifier, string memory name)

Verifying Documents

  1. Access the Home Page

    • After logging in, go to the home.js page.
    • You will see a list of documents that need verification.
  2. Select a Document

    • Choose a document from the list that you want to verify.
  3. Verify the Document

    • On the verify/[documentId].js page, review the document details.
    • Approve the document.

About

SecureDocs uses blockchain to ensure document integrity and traceability. It integrates Chainlink for automation and ERC-1400 tokens for access control, providing a secure, decentralized document management system. Technologies include ZkSync for scalability and Chainlink for real-time data verification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.8%
  • Solidity 12.3%
  • CSS 1.9%