Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reputation Oracle] NDA #2148

Open
portuu3 opened this issue Jun 17, 2024 · 0 comments
Open

[Reputation Oracle] NDA #2148

portuu3 opened this issue Jun 17, 2024 · 0 comments
Assignees
Labels

Comments

@portuu3
Copy link
Collaborator

portuu3 commented Jun 17, 2024

Description
Workers should sign an NDA to protect requesters datasets

Motivation
Protect sensitive data and intellectual property from requesters dataset, ensuring compliance with data privacy laws.

Implementation details

  1. Create NDAVersion Entity
    Define an entity for NDA versions. This entity should include fields for the version identifier, document text, and creation date.
    id: Primary key
    version: String to represent the version of the NDA
    documentText: Text of the NDA
    createdAt: Timestamp of when the NDA version was created
    updatedAt: Timestamp of when the NDA version was updated

  2. Create NDA Entity
    Define an entity for the NDA that users will sign. This entity should reference the NDAVersion entity.

id: Primary key
createdAt: Timestamp of when the NDA was signed
ipAddress: IP address of the user at the time of signing
userId: relationship with the User entity
ndaVersionId: relationship with the NDAVersion entity

  1. Implement NDA Endpoints
    Create these endpoints:
  • GET: /nda: for retrieving the last NDA version. If the user already signed it, return null. If it is not signed yet, return the nda version information. Use JWT auth
  • POST: /nda/sign: for signing NDA. Use JWT auth
  1. Add NDA information to JWT
    Add wheter NDA has been signed to the JWT payload as:
    "NDA": "true" or "false"
    If the last NDA version is not the last signed by the user, set it to false
@portuu3 portuu3 added the On hold label Jul 1, 2024
@portuu3 portuu3 added this to the NDA milestone Jul 1, 2024
@ansaqib ansaqib removed this from the NDA milestone Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

3 participants