Module runtime::utils

source ·

Modules

  • The AccountId32 type is a wrapper around sp_core::crypto::AccountId32 with added functionality and convenience methods. It is designed for working with account IDs in the context of Substrate-based blockchains. This wrapper is necessary because the scale_encode::EncodeAsType and scale_decode::DecodeAsType traits are not implemented for sp_core::crypto::AccountId32, but they are required for the latest version of the subxt crate.
  • A signer suitable for substrate based chains. This provides compatibility with Substrate packages like sp_keyring and such, and so relies on sp_core and sp_runtime to be included. Custom implementation needed because as it feature gated by subxt substrate-compat feature flag.