RGB-WG / rgb-core

RGB Core Library: consensus validation for private & scalable client-validated smart contracts on Bitcoin & Lightning

Home Page:https://spec.rgb.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changes to EmbeddedVM

dr-orlovsky opened this issue · comments

Change EmbededVm: it must provide a table linking metadata, state and state transitions to a specific embedded validation procedures. This will allow to avoid fixed set of field/state/transition type names defined at the consensus level and will much simplify the live of schema creators.

To have this changes in a non-breaking way a new Vm enum member will be added, with previous EmebddedVm renamed to LegacyVm. The LegacyVm will be deprecated and it will continue to rely on the pre-defined field types, which will not be exported anymore.