Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata V16: Add code functionality as WASM blob #4714

Open
lexnv opened this issue Jun 5, 2024 · 2 comments
Open

Metadata V16: Add code functionality as WASM blob #4714

lexnv opened this issue Jun 5, 2024 · 2 comments

Comments

@lexnv
Copy link
Contributor

lexnv commented Jun 5, 2024

The metadata V16 is capable of expressing type information only.
One of the shortcomings of V15 is that the metadata cannot express code functionality.

This would be beneficial for users like subxt. For example, subxt could rely on the hashing functionality exposed in the metadata WASM blob to remove the Hashing type (equivalent of system's pallet Hashing). Expressing the hashing functions will reduce our code and allow us to be more generic in targeting different chains.

There's also the need from the community to place various methods in the metadata (extracted from the forum post).

One concern with this approach is that some users in the future will add the signing function of extrinsics to the metadata, or a similar function that exposes the private key (or sensitive data) to the "untrusted" WASM blob.

That said, I would still opt for this functionality in the metadata to offer a better user experience for developers.
Currently, this can be done as explained in this comment of the forum post via CustomValueMetadata fields.

Raising this to get your feedback before thinking of the technical approach 🙏

Maybe part of: #4520

// cc @paritytech/subxt-team @bkchr @skunert

@Polkadot-Forum
Copy link

This issue has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/upcoming-metadata-v16-features-to-include-in-v16/8153/5

@Polkadot-Forum
Copy link

This issue has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/metadata-v16-updates/9557/7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants