FellowTraveler / Open-Transactions-old

Open-Transactions democratizes financial and monetary actions. You can use it for issuing currencies/stock, paying dividends, creating asset accounts, sending/receiving digital cash, writing/depositing cheques, cashier's cheques, creating basket currencies, trading on markets, scripting custom agreements, recurring payments, escrow, etc. Open-Transactions uses strong crypto. The balances are unchangeable (even by a malicious server.) The receipt history is destructible. The transactions are unforgeable. The cash is unlinkable. The cheques are non-repudiable. Etc.
http://opentransactions.org
407 stars 84 forks source link

Get user feedback: Lua in contracts... #47

Closed FellowTraveler closed 13 years ago

FellowTraveler commented 14 years ago

I realized that Lua code can be added inside the contracts, based on a standard interface, with access to certain standard objects (read-only or whatever). When those parts of the contracts are activated, the appropriate data objects can be passed into the Lua code. Certainly custom rules can be added to contracts by this mechanism (especially those that return true/false.) There is a whole level of business intelligence that can be added at this layer, without changing any of the code inside OT itself.

I need to get user feedback on how they would use this feature, so that I can define the interface clearly. (So that Lua functions implementing that standard interface can be added to the contracts.)

rlindsay commented 13 years ago

My initial thoughts are, if you have a spec, this would be listed as an optional part of the spec. Or an 'extension' to it. My reasoning is that it doesn't sound like a critical aspect of OT contracts. I may be wrong on this. Also, if you add in too much complexity before the project has much takeup you might be limiting takeup incentive (that is, if every part of the spec is listed as a MUST implement).

edit Smart Contracts? http://en.wikipedia.org/wiki/Smart_contract http://www.erights.org/smart-contracts/index.html

FellowTraveler commented 13 years ago

Also check out Chai Script and Angel Script.

FellowTraveler commented 13 years ago

Closing this issue, as OT is now fully-scriptable on the client side as well as in smart contracts.