Open hbulgarini opened 1 year ago
@stiiifff can i take this one?
@hbulgarini I'd rather complete M1 first.
@hbulgarini I'd rather complete M1 first.
Yes, the idea is once M1 is completed not now.
@hbulgarini can you review this one and amend if needed ? Ideally, the design need to be fully specified before we can move it to the Ready status.
@hbulgarini can you review this one and amend if needed ? Ideally, the design need to be fully specified before we can move it to the Ready status.
It seems that XCM code base has considered this need already with this new PR: https://github.com/paritytech/polkadot/pull/6662
Potentially i will review that feature in order to implement this one.
For the sub0 presentation i did a hack for converting the XCM caller into the proper chain Origin:
https://github.com/paritytech/trappist/blob/sub0_2022/runtime/trappist/src/xcm_config.rs#L73:L91
While i was discussing this implementation with the moonbeam guys, they addressed this configuration might bring some security issues (like sending the call from other parachain than the one expected and pass the Origin convertion anyway).
The point here would be to properly extract which account and which chain the XCM message was sent from so we can properly address the security around this.