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

SRI - CCSM integration discussion #751

Open
2 tasks
biscuitdey opened this issue Sep 21, 2023 · 1 comment
Open
2 tasks

SRI - CCSM integration discussion #751

biscuitdey opened this issue Sep 21, 2023 · 1 comment
Milestone

Comments

@biscuitdey
Copy link
Collaborator

biscuitdey commented Sep 21, 2023

Overview

This issue tackles as conditions and controls regarding deploying and calling the ccsm contract functions.

Tasks

  • Discuss who and when should deploy the contract
  • Allow only owner to add anchor hash to the ccsm contract
@biscuitdey biscuitdey added this to the mil5 milestone Sep 21, 2023
@ognjenkurtic
Copy link
Collaborator

ognjenkurtic commented Jan 5, 2024

Latest agreement is as follows:

  • There is one smart contract per BPI used to store all anchor hashes across all workgroups that are active in it

  • Smart contract owner is an account controlled by the BPI

  • Smart contract contains a map of workgroup id -> content addressable hash array and a pair is created each time there is a new workgroup created

  • content addressable hash array contains the list of all of the transactions hashes, where tx hash is
    txResult.hash = hashFn(${merkelizedInvoiceRoot}${witnessHash}).toString('hex');
    and is updated after each successful execution of a workstep (succesfull state change) for a given workgroup

  • It is the responsibility of the account in control of the BPI to trigger the smart contract methods after events

We need a following list of issues to be implemented for this mechanism to work:

  • implement the smart contract with the needed functionalities (add workgroup, add CAH...)
  • Enable BPI to store relevant infomration to communicate with the smart contract (private key, address ...)
  • trigger add workgroup onchain on workgroup creation in the BPI
  • trigger add CAH on succesfull workstep execution
  • implement an endpoint to fetch StateTreeLeafValueContent object with accompanying info based on the provided CAH

@biscuitdey @Therecanbeonlyone1969 @Kasshern @skosito @Ybittan please double check if i missed something and i am going to open issues

@ognjenkurtic ognjenkurtic changed the title SRI - CCSM Solidity Contract deployment SRI - CCSM integration discussion Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants