[Identity] Decouple usernames from identities (#5554)
This PR refactors `pallet-identity` to decouple usernames from identities. Main changes in this PR: - Separate usernames from identities in storage, allowing for correct deposit accounting - Introduce the option for username authorities to put up a deposit to issue a username - Allow authorities to remove usernames by declaring the intent to do so, then removing the username after the grace period expires - Refactor the authority storage to be keyed by suffix rather than owner account. - Introduce the concept of a system provider for a username, different from a governance allocation, allowing for usernames set by the system and not a specific authority - Implement multi-block migration to enable all of the changes described above --------- Signed-off-by:georgepisaltu <george.pisaltu@parity.io> Co-authored-by:
Ankan <10196091+Ank4n@users.noreply.github.com>
parent
80cd5fd5
Pipeline
#503420
waiting for manual action
with stages
in
30 minutes and 24 seconds
Stage:
Stage:
Stage:
Stage:
Stage:
Showing
- Cargo.lock 4 additions, 0 deletionsCargo.lock
- cumulus/parachains/runtimes/people/people-rococo/Cargo.toml 4 additions, 0 deletionscumulus/parachains/runtimes/people/people-rococo/Cargo.toml
- cumulus/parachains/runtimes/people/people-rococo/src/lib.rs 24 additions, 0 deletionscumulus/parachains/runtimes/people/people-rococo/src/lib.rs
- cumulus/parachains/runtimes/people/people-rococo/src/people.rs 3 additions, 0 deletions...us/parachains/runtimes/people/people-rococo/src/people.rs
- cumulus/parachains/runtimes/people/people-rococo/src/weights/mod.rs 1 addition, 0 deletions...rachains/runtimes/people/people-rococo/src/weights/mod.rs
- cumulus/parachains/runtimes/people/people-rococo/src/weights/pallet_identity.rs 28 additions, 15 deletions...times/people/people-rococo/src/weights/pallet_identity.rs
- cumulus/parachains/runtimes/people/people-rococo/src/weights/pallet_migrations.rs 172 additions, 0 deletions...mes/people/people-rococo/src/weights/pallet_migrations.rs
- cumulus/parachains/runtimes/people/people-westend/Cargo.toml 4 additions, 0 deletionscumulus/parachains/runtimes/people/people-westend/Cargo.toml
- cumulus/parachains/runtimes/people/people-westend/src/lib.rs 24 additions, 0 deletionscumulus/parachains/runtimes/people/people-westend/src/lib.rs
- cumulus/parachains/runtimes/people/people-westend/src/people.rs 3 additions, 0 deletions...s/parachains/runtimes/people/people-westend/src/people.rs
- cumulus/parachains/runtimes/people/people-westend/src/weights/mod.rs 1 addition, 0 deletions...achains/runtimes/people/people-westend/src/weights/mod.rs
- cumulus/parachains/runtimes/people/people-westend/src/weights/pallet_identity.rs 28 additions, 15 deletions...imes/people/people-westend/src/weights/pallet_identity.rs
- cumulus/parachains/runtimes/people/people-westend/src/weights/pallet_migrations.rs 172 additions, 0 deletions...es/people/people-westend/src/weights/pallet_migrations.rs
- polkadot/runtime/common/src/integration_tests.rs 2 additions, 0 deletionspolkadot/runtime/common/src/integration_tests.rs
- polkadot/runtime/rococo/Cargo.toml 4 additions, 0 deletionspolkadot/runtime/rococo/Cargo.toml
- polkadot/runtime/rococo/src/lib.rs 27 additions, 0 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/rococo/src/weights/mod.rs 1 addition, 0 deletionspolkadot/runtime/rococo/src/weights/mod.rs
- polkadot/runtime/rococo/src/weights/pallet_identity.rs 29 additions, 16 deletionspolkadot/runtime/rococo/src/weights/pallet_identity.rs
- polkadot/runtime/rococo/src/weights/pallet_migrations.rs 173 additions, 0 deletionspolkadot/runtime/rococo/src/weights/pallet_migrations.rs
- polkadot/runtime/westend/Cargo.toml 4 additions, 0 deletionspolkadot/runtime/westend/Cargo.toml
Please register or sign in to comment