Pages:
Author

Topic: OP_CHECKCOLORVERIFY: soft-fork for native color coin support (Read 3613 times)

legendary
Activity: 1232
Merit: 1094
Anyway with MASTs that step can be just a matter of optional blockchain compression.

That's true, the "real" script could be the expanded version.  If a client finds a particular sequence of bytes repeating in script, then it could have some way tell its peers about it.
legendary
Activity: 1120
Merit: 1160
"merkelized abstract syntax tree" == "abstract syntax tree + hashing"

You only provide the parts of the tree actually executed, take advantage of that.

Making transactions as statefull as you suggest - depending on external data for the scripts - has many severe drawbacks due to the non-determinism and complexity. Anyway with MASTs that step can be just a matter of optional blockchain compression.
legendary
Activity: 1232
Merit: 1094
TierNolan: learn about merkelized abstract syntax trees.

There is no Google hit for "merkelized abstract syntax tree"

However, a syntax tree is basically the root of a tree of instructions.  Do you mean that you give the root node of a tree that defines the operations?

I don't see that as an improvement.  You still need to provide the entire script when spending the coin?

What I was suggesting was a way to add code for functions.

Maybe

OP_CALL

is a better description.  That would call the given function.
legendary
Activity: 1120
Merit: 1160
TierNolan: learn about merkelized abstract syntax trees.
legendary
Activity: 1232
Merit: 1094
The issue is it trades off small scripts for a whole lot of effort creating code for colored coins; this code will need to be duplicated across many different bitcoin implementations. Frankly that's just not worth it.

What about some way to define custom opcodes then.

OP_META

A special transaction could define an to