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

Create a new SmartContract for Object Registry #1

Open
jftavira opened this issue Jun 16, 2023 · 1 comment
Open

Create a new SmartContract for Object Registry #1

jftavira opened this issue Jun 16, 2023 · 1 comment
Labels
EPIC Enhanced Privacy Identity Concept Smart Contracts Identity Smart Contracts Tasks

Comments

@jftavira
Copy link

jftavira commented Jun 16, 2023

Reference: https://github.com/alastria/AlastriaEPIC/wiki/Registry-SmartContract

  • SmartContract must be upgradeable
  • It will contain object hashes, along with the hashing algorithm used and the status
  • Only the original creator of an object hash will be able to change the status
  • ObjectHash should be at least 512bits or 64bytes
  • Status could be any of these status: VALID, ASK OWNER, REVOKE
  • See link above for valid transitions
  • Functions:
    -- SetObjectStatus(hash,status) -> OK/KO. This function launch 1 event
    - event ObjectStatusUpdated (bytes64 objectHash, Status status); --> launched when the object is registered or updated in blockchain.
    -- GetObjectStatus(hash) -> status
    -- NOTE: Hashes follows PSMHashes model.
@jftavira jftavira added the EPIC Enhanced Privacy Identity Concept label Jun 16, 2023
@rober12 rober12 added the Smart Contracts Identity Smart Contracts Tasks label Jun 16, 2023
@rober12
Copy link
Collaborator

rober12 commented Jun 16, 2023

@jftavira Would it be interesting to launch an event when the object is revoked or even when it is anchored?

  • event ObjectRevoked (bytes64 objectHash);
  • event ObjectUpdated (bytes64 ObjectHash, Status status);

Or something similar by changing the names?

This was referenced Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EPIC Enhanced Privacy Identity Concept Smart Contracts Identity Smart Contracts Tasks
Projects
None yet
Development

No branches or pull requests

2 participants