ChristoferVikstroem / FaTS

An open-source repository for a smart contract implementation in the KTH course DD2485.
MIT License
1 stars 0 forks source link

Protocol Design #7

Open vivi365 opened 9 months ago

vivi365 commented 9 months ago

New Protocol Design

After consulting with Mojtaba, we have decided to change the design of the protocol. To enhance privacy without involving zk solutions (which Mojtaba through would be a whole another project), we will move the view from one company and individual "comparison" of salaries within the company, to a more sector-wide view. In this model, a company submits its data, and an assumption is that this data is already "verified".

We will use two contracts for this:

Company contract

  1. Add, remove and update employee data
  2. Verify the salary
  3. A lookup function: a. Query digital wallet b. Returns Title, Salary and if salary is verified by employee.

Company factory contract

  1. Digital Wallet to connect the company to
  2. Writing what sector the company operates in
  1. Company Contract creation
  2. Storing companies based on sector
  3. Allowing queries for look-ups a. Specific companies in a sector b. Bigger picture queries (average salary of the sector)
  4. See total number of verified salaries for specific companies and the entire sector.
vivi365 commented 9 months ago

Frontend

In the front end, we would like to: