-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[xcm] GlobalConsensusConvertsFor
for remote relay chain (based on pevious GlobalConsensusParachainConvertsFor)
#7517
[xcm] GlobalConsensusConvertsFor
for remote relay chain (based on pevious GlobalConsensusParachainConvertsFor)
#7517
Conversation
…revious GlobalConsensusParachainConvertsFor)
…s-location-converter
…s-location-converter
…s-location-converter
bot rebase |
…s-location-converter
Rebased |
/// WARNING: This results in the same `AccountId` value being generated regardless | ||
/// of the relative security of the local chain and the Relay-chain of the input | ||
/// location. This may not have any immediate security risks, however since it creates | ||
/// commonalities between chains with different security characteristics, it could | ||
/// possibly form part of a more sophisticated attack scenario. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edited for clarity, however I don't particularly agree with this comment. It does not create commonalities between chains; actually it says that one chain will have the same 32-byte AccountId
in other consensus systems (that use 32-byte account IDs). If this chain has a security incident, that would have effects in many other chains, but it does not put anything in common between the local chain and the "global" chain.
Unless I am missing something, I would delete this comment.
/// WARNING: This results in the same `AccountId` value being generated regardless | |
/// of the relative security of the local chain and the Relay-chain of the input | |
/// location. This may not have any immediate security risks, however since it creates | |
/// commonalities between chains with different security characteristics, it could | |
/// possibly form part of a more sophisticated attack scenario. | |
/// WARNING: This results in the same `AccountId` value being generated regardless of the relative | |
/// security of the local chain and the security of the input location. This may not have any | |
/// immediate security risks; however, because it creates commonalities between chains with | |
/// different security characteristics, it could possibly form part of a more sophisticated attack | |
/// scenario. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…s-location-converter
Co-authored-by: joe petrowski <[email protected]>
Co-authored-by: joe petrowski <[email protected]>
Co-authored-by: joe petrowski <[email protected]>
…nverter' into bko-global-consensus-location-converter
bot rebase |
…s-location-converter
Rebased |
bot rebase |
…s-location-converter
Rebased |
The CI pipeline was cancelled due to failure one of the required jobs. |
bot merge |
…evious GlobalConsensusParachainConvertsFor) (#7517) * [xcm] `GlobalConsensusConvertsFor` for remote relay chain (based on previous GlobalConsensusParachainConvertsFor) * Typo * PR fix (constants in test) * Re-export of `GlobalConsensusConvertsFor` * assert to panic * Update xcm/src/v3/multiasset.rs Co-authored-by: joe petrowski <[email protected]> * Update xcm/xcm-builder/src/location_conversion.rs Co-authored-by: joe petrowski <[email protected]> * Update xcm/xcm-builder/src/location_conversion.rs Co-authored-by: joe petrowski <[email protected]> * Review fixes --------- Co-authored-by: parity-processbot <> Co-authored-by: joe petrowski <[email protected]>
Relates to: paritytech/parity-bridges-common#2401
Will be used to generate accountId as sovereign account of remote relaychain, e.g. for setting
pallet_assets::ForeignAssets
owner/issuer/freezer/admin for wrappedDOT/wrappedKSMe.g.: on AssetHubKusama for foreign asset with
MultiLocation { parents: 2, X1(GlobalConsensus(Polkadot)) }
owner accountId will beand also this
GlobalConsensusConvertsFor
could be added to theLocationToAccountId
on AssetHubs, which will allow to processxcm::Transact(pallet_assets::set_team/...)
over bridge from remote relay chain as owner of its wrapped representation of native asset