Open bvbfan opened 1 year ago
In designing a next-generation Omni architecture, I think there are three related issues we need to address:
Note that Omni from the beginning has used off-chain storage: the (unfortunately, non-updatable) URL links for each Smart Property. On chain storage has migrated from Class A to Class B to Class C/OP_RETURN.
We may want to take advantage of TapRoot scripts like Ordinals, but I believe we should be better Blockchain citizens and limit the usage of on-chain storage by providing a standard/supported/recommended option for storing larger data items off-chain.
Lightning is the obvious choice here, but new technologies like Ark sound promising and should be considered. Changes to the core protocol to better support off-chain transactions are likely needed.
Any contracts used by Omni Core to determine a global "Omni consensus" would need to be on-chain, but off-chain contracts could be used for settling off-chain transactions, with the necessary information being published on-chain as part of finalization.
In addition, of course, we must choose a scripting language/VM. I would recommend we look at the Bitcoin-centric solutions here as a first step.
We could introduce a self-validating transactions. It's a transaction which includes, after OP_RETURN zero knowledge proof, which means it will be a self-proving entity a transaction data + hash of changes.
Currently protocol layer embed data via fake address (Class A), multi-sig transaction (Class B) or payload after OP_RETURN. The business logic is in
omnicored
which impacts mass adoption in well-known wallets. To accelerate decentralization including 3rd party adoption protocol may expose a bitcoin like script (similar to K lang) instead of payload after OP_RETURN. It potentially exposes a contract between couple of parties, set of rules/activations/consensus hash (restricted to exodus address). It means protocol upgrades is deployed by protocol owner, to prevent bad interpretation business logic needs to deployed on-chain as well.WebAssembly compiled library could be incorporated in witness script (ordinals like) and live on-chain.
JS library (compressed) like new Ordinals feature.
Either way interpreter needs to be stateless, that could lead to consensus vulnerability.