GithubHelp home page GithubHelp logo

Comments (4)

zack-bitcoin avatar zack-bitcoin commented on June 16, 2024

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.

zack-bitcoin avatar zack-bitcoin commented on June 16, 2024

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.

zack-bitcoin avatar zack-bitcoin commented on June 16, 2024

Some nodes could choose to download blocks without merkel proofs, and for them this would save a lot of space.

from amoveo.

zack-bitcoin avatar zack-bitcoin commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.