# Authentication file format for v2 ecosystem?

**URL:** https://forum.duniter.org/t/authentication-file-format-for-v2-ecosystem/13132
**Category:** Applications
**Tags:** authentification, authfile, silkaj, py-polkadot-sdk
**Created:** [15 June 2025 10:09 UTC](https://forum.duniter.org/t/authentication-file-format-for-v2-ecosystem/13132 "2025-06-15T10:09:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Moul](https://forum.duniter.org/user_avatar/forum.duniter.org/moul/32/9145_2.png) [@Moul](https://forum.duniter.org/u/Moul)
#### Post date: [15 June 2025 10:09 UTC](https://forum.duniter.org/t/authentication-file-format-for-v2-ecosystem/13132/1 "2025-06-15T10:09:05Z")

</div>

For v1 ecosystem, Silkaj v0.12 promote (E)WIF authentication format defined in the [RFC #13](https://git.duniter.org/documents/rfcs/-/blob/master/rfc/0013_Duniter_Encrypted_Wallet_Import_Format.md).

Which authentication file format is implemented in your v2 client or which one are you planning the implementation?

With `py-polkadot-sdk` Python library, [Keypair - Python Substrate Interface Docs](https://jamdottech.github.io/py-polkadot-sdk/reference/keypair/#substrateinterface.keypair.Keypair.export_to_encrypted_json) I can create the encrypted JSON authentication file format [supported by PolkadotJS web browser extension](https://support.polkadot.network/support/solutions/articles/65000177677-how-to-export-your-json-backup-file).

I can not generate the encrypted JSON authentication file format from v1 seed, since it’s not supported by this library, so I still have to support (E)WIF to some extend.

Where (E)WIF format can only be created from v1 authentication methods. I haven’t found a way to get the seed out of a mnemonic.

I am considering using the encrypted JSON format from PolkadotJS as a default authentication method in Silkaj. (E)WIF would still be supported for backward compatibility. Therefore the accounts would be promoted to migrate to mnemonic/JSON authfile usage.

What do you think should be the promoted authentication file format used for v2 ecosystem?
