New Opcode Proposal `PACK` opcode

I would like to suggest a new opcode proposal
PACK opcode.

In the sequence of OPCODE,
you might want to embed a list; [1,2,3], formally.

PACK2PUSH1 0x01PACK2PUSH1 0x02PACK2PUSH1 0x03PACK0

This is equivalent to cons 1 (cons 2 (cons 3 nil)).
n is the arity of the packing in PACKn.

We can put arbitrary data structure in Opcode with this idea.


Source
Disclaimer: The content above is only the author's opinion which does not represent any position of Followin, and is not intended as, and shall not be understood or construed as, investment advice from Followin.
Like
Add to Favorites
Comments