generate_node_keystore

Function generate_node_keystore 

Source
pub async fn generate_node_keystore<'a, T>(
    acc: &NodeAccounts,
    node_files_path: impl AsRef<Path>,
    scoped_fs: &ScopedFilesystem<'a, T>,
    asset_hub_polkadot: bool,
    keystore_key_types: Vec<&str>,
) -> Result<Vec<PathBuf>, GeneratorError>
where T: FileSystem,
Expand description

Generates keystore files for a node.

ยงArguments

  • acc - The node accounts containing the seed and public keys
  • node_files_path - The path where keystore files will be created
  • scoped_fs - The scoped filesystem for file operations
  • asset_hub_polkadot - Whether this is for asset-hub-polkadot (affects aura key scheme)
  • keystore_key_types - Optional list of key type specifications

If keystore_key_types is empty, all default key types will be generated. Otherwise, only the specified key types will be generated.