Skip to content

purely functional on-chain smart contracts. #240

@zack-bitcoin

Description

@zack-bitcoin

An idea to make amoveo contracts shorter.

A new transaction type, and all it did was define a pure function to be made available in chalang.
So from now on, you could use this function in any chalang programs.

So far, we have been using the same 2 contracts over and over. When we do a channel_slash tx, it can be a very large transaction.

We could make both of these contracts into functions that will exist forever on Amoveo.
It wont take up more space than a few dozen accounts, and every channel_slash and channel_solo_close tx can be much smaller from now on.

This is especially important for a certain class of attacks where the attacker causes many people to want to do channel_slash txs at the same time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions