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

story: storage of parameters (dapp/lpms) #37

Open
3 tasks
xdaluca opened this issue May 12, 2022 · 0 comments
Open
3 tasks

story: storage of parameters (dapp/lpms) #37

xdaluca opened this issue May 12, 2022 · 0 comments
Assignees
Labels
C-lpms-server Components: server C-stays Component: stays dapp D-average Difficulty: average P-high Priority: high T-story Type: user story

Comments

@xdaluca
Copy link
Contributor

xdaluca commented May 12, 2022

Problem
The smart contracts for videre are only concerned about enforcing settlement and term conditions - and in doing so the contracts only retain a the EIP712 state hash of the typed structured data that makes up the state of the stay.

To paraphrase, the only thing recorded on chain is a hash of the state - therefore there is NO readable "I check in on date dd/mm/YYYY and check out on date aa/bb/CCCC". This data MUST be stored somewhere, otherwise the state cannot be reconstructed, and therefore smart contract execution will be impossible.

Solution
Store the state data in a structure such that:

  • feat: stub stage storage in lpms-server #100
  • The stays dapp to maintain a copy of the state in local storage.
  • After booking a stay, the stays dapp could generate QR code, as well as a signed hash in the structure so that the QR code could have all data embedded within to allow "no-wallet" check-in.
@xdaluca xdaluca added C-lpms-server Components: server C-stays Component: stays dapp C-lpms-web Components: lpms web T-story Type: user story and removed C-stays Component: stays dapp C-lpms-server Components: server labels May 12, 2022
@mfw78 mfw78 added C-lpms-server Components: server and removed C-lpms-web Components: lpms web labels May 12, 2022
@mfw78 mfw78 added D-average Difficulty: average P-high Priority: high labels May 13, 2022
@xdaluca xdaluca added this to the ETHBarcelona milestone May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-lpms-server Components: server C-stays Component: stays dapp D-average Difficulty: average P-high Priority: high T-story Type: user story
Projects
None yet
Development

No branches or pull requests

4 participants