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.
This page serves as the entry point of the application, offering users the option to go to the login page.
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.
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.
This page is the main dashboard for verifiers. After logging in, verifiers can view and manage documents that need verification.
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.
This page allows verifiers to see their personal information.
To set up and run the SecureDocsNotary application locally, follow these steps:
git clone https://github.com/SecureDocsChain/SecureDocsNotary.git
Navigate to the project directory and install the required dependencies.
cd SecureDocsNotary
npm install
Start the development server.
npm run dev
Open your browser and navigate to http://localhost:3000 to see the application in action.
-
Navigate to the login page
- Go to the
verifierLogin.js
page. - Click on the login option to authenticate using Web3Auth.
- Go to the
-
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
).
-
KYC
- KYC are done manualy, you will need to whitelist the user directly on the smart-contract
SecureVaultFactory.sol
with the functionregisterVerifier(address verifier, string memory name)
- KYC are done manualy, you will need to whitelist the user directly on the smart-contract
-
Access the Home Page
- After logging in, go to the
home.js
page. - You will see a list of documents that need verification.
- After logging in, go to the
-
Select a Document
- Choose a document from the list that you want to verify.
-
Verify the Document
- On the
verify/[documentId].js
page, review the document details. - Approve the document.
- On the