mit-dci / dlcoracle

7 stars 7 forks source link

More flexible data source model #4

Closed ysangkok closed 2 years ago

ysangkok commented 6 years ago

I want to use DLC for soccer, but it is inconvenient to encode the results of a football game into a uint64. It would be more usable if the data source worked with sets as its primary abstraction.

gertjaap commented 6 years ago

Hi @ysangkok,

Theoretically you can sign any message of 32 bytes using the signature scheme. I would recommend you take a look at our library for oracles over here.

The challenge is that the execution of contracts, that's part of lit is currently centred around numerical messages. You can control lit using the RPC client here, there's examples here.

If you could further elaborate on your usecase maybe i can think of the necessary adjustments in lit to facilitate it. I was already looking into how we can give more control on the payouts of the contract from RPC.

ysangkok commented 2 years ago

All right, thanks for the response. I'll close this since it isn't a problem with the actual code.