coderbunker / timesheet-backend

Timesheet Datawarehouse backend
MIT License
1 stars 0 forks source link

FR: add validation and storage on blockchain of work history #5

Open rngadam opened 6 years ago

rngadam commented 6 years ago
arseneeth commented 6 years ago

I did some research on the issue, so in order to pass our data to Ethereum network we have to have several things: smart contract acting as a storage and "custom executer"- a program running a full ethereum node that would get data from the server and generate a transaction to the smart contract by request. Here is a schema: screen shot 2018-05-04 at 14 31 43

I see steps as follows:

(Maybe it would be needed to update the steps later on)

As for Skycoin blockchain, I've found some info on their website that they have programming language called CX, while I haven't found any tutorials or use cases online. However, they directly sell skycoins for ether on their website, so I suggest that they are familiar with Ethereum eco-system :)

rngadam commented 6 years ago

if you mean the language:

https://github.com/breckinloggins/cx (NOTE: This project is currently "sleeping" - I'm too optimistic to call it dead) ?

rngadam commented 6 years ago

As for the question as to WHICH data to push to the blockchain:

I think generally we want to create a verified history.

Which means a month by month breakdown of the paid work per project with a:

Separately, we want a way to get approval (through the contract on the blockchain?):

I would suggest to create a new view in the database and play around with what we want to export (where every row would represent the data we want to have in a single transaction).

rngadam commented 6 years ago

As a separate avenue of research, I would be very curious to see how we can interact with blockchain based / distributed databases with a FDW wrapper in th PostgreSQL: https://wiki.postgresql.org/wiki/Foreign_data_wrappers