Comments (4)
Instead of making a new governance variable, we could reuse the one for making accounts. And have 1 byte of smart contract cost the same as 1 byte of accounts.
from amoveo.
This would just be 1 new tx type.
Maybe we should call these purely functional smart contracts "libraries".
We would need to include merkel proofs of all the libraries we will use with our channel_solo_close and channel_slash txs. This merkel proof would include the entire smart contract definition.
So this method only saves block space if multiple people are using the same smart contract in the same block.
Something in spk.erl needs to insert all the library definitions into the chalang contract before running it in the chalang vm.
from amoveo.
Some nodes could choose to download blocks without merkel proofs, and for them this would save a lot of space.
from amoveo.
If we use sharding, and we want all the contracts to be available to all the shards, then that means 1 byte of libraries is much more expensive than 1 byte of accounts.
So I guess it does need to be a new governance variable.
from amoveo.
Related Issues (20)
- move a channel bet to a direct path. HOT 1
- Sync mode that downloads blocks without merkel proofs, and generates the merkel proofs locally. HOT 2
- syncing optimization
- optimizing futarchy for least volatility HOT 4
- probabilistic payment HOT 20
- multisig accounts
- more efficient merkel tree database
- more efficient merkel tree database HOT 2
- hard update 17 changes HOT 1
- accumulator database instead of merkel HOT 1
- Documentation is not Accurate HOT 9
- checkpointing, and syncing blocks in reverse time order HOT 1
- Protocol 'inet_tcp': register/listen error HOT 5
- soft update to enable betting on oracles that do not yet exist. HOT 2
- Cheaper oracles HOT 1
- hard update 25
- Issues with proof that PoS consensus doesn't work HOT 3
- require miners to run full nodes
- partially matching channel offers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amoveo.