Sitelet https://github.com/open-web3-stack/PVQ/issues/9
Skip to content

PoC: Extension as a program #9

Description

@xlc

Depends on #8

Research if it is possible to implement an extension with a PolkaVM program.

The use case is that a chain can enable new extension by simply uploading a PolkaVM program and it will be used as extension implementation.

The PolkaVM program will be executed on a similar environment of the XCQ executor. i.e. it can call into other extensions. In that way, it could use an extension to read raw storages and basically do anything.

Activity

  1. mise42 commented on Jun 3, 2024

    @mise42
    Contributor

    Is this requirement an additional feature or expected results? I was thinking the implementation of the different extension are done in host side, and the caller provides polkavm blob (like smart contract) and other input data to do query.

  2. xlc commented on Jun 3, 2024

    @xlc
    MemberAuthor

    This is an additional feature. Most of the extensions should still be implemented natively in runtime for performance reason. This will be useful to dynamically add new extensions without runtime upgrade and that can be useful in many use cases. However, this is a nice to have and not needed for the first release version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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