Skip to content

[Discussion] On-chain protocol layer #356

@bvbfan

Description

@bvbfan

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.

  1. WebAssembly compiled library could be incorporated in witness script (ordinals like) and live on-chain.
  • Limitation: if it doesn't run in the browser it needs a VM. The easy integration will be a shared library which is platform specific.
  1. JS library (compressed) like new Ordinals feature.
  • Limitation: js interpreter could be vulnerable

Either way interpreter needs to be stateless, that could lead to consensus vulnerability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions