This PR adds the implementation of a user/device authentication decentralized application (dApp) using Solidity. It includes the creation of a new Solidity contract file named "Auth.sol" that handles user registration, login, and logout. Additionally, a test file named "Auth.test.js" is created to ensure the contract functions as expected.
Summary
Created a new Solidity contract file named "Auth.sol" with a struct for User and a mapping for users.
Implemented the "register" function to add a new User to the "users" mapping.
Implemented the "login" function to check if a User with a given address exists in the "users" mapping.
Implemented the "logout" function to remove a User with a given address from the "users" mapping.
Created a test file named "Auth.test.js" to test the contract functions.
Added test cases for the "register", "login", and "logout" functions in the test file.
Ensured that the code is syntactically correct and follows best practices.
Please review and merge this PR to add user/device authentication functionality to the Veera blockchain project.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
git checkout {pull_request.branch_name}
🎉 Latest improvements to Sweep:
Getting Sweep to format before committing! Check out Sweep Sandbox Configs to set it up.
We launched our browser extension making it faster to make Sweep issues.
We released a demo of our chunker, where you can find the corresponding blog and code.
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR adds the implementation of a user/device authentication decentralized application (dApp) using Solidity. It includes the creation of a new Solidity contract file named "Auth.sol" that handles user registration, login, and logout. Additionally, a test file named "Auth.test.js" is created to ensure the contract functions as expected.
Summary
Please review and merge this PR to add user/device authentication functionality to the Veera blockchain project.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: