paritytech / subxt

Interact with Substrate based nodes in Rust or WebAssembly
Other
391 stars 236 forks source link

Support merkalised metadata? #1586

Open jsdw opened 1 month ago

jsdw commented 1 month ago

Do we want Subxt to be able to accept some merkalized metadata "proof" and use it to decode an extrinsic?

This would allow Subxt to be used in signers which are only passed this merkalized metadata and some TX bytes, and then decode this payload in order to show to the user, as well as then sign the TX taking this metadata proof hash into account.

Needs thought!

https://github.com/bkchr/merkleized-metadata

bkchr commented 1 month ago

Do we want Subxt to be able to accept some merkalized metadata "proof" and use it to decode an extrinsic?

I would say it depends on the demand for this feature. For now, I would probably say that you don't need this, but maybe someone already uses subxt in a signer, then this is probably a different topic.