# \[Archive\] Diffrent private key for same account

**URL:** <https://builder.metamask.io/t/archive-diffrent-private-key-for-same-account/1693>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [November 16, 2023, 8:49am UTC](https://builder.metamask.io/t/archive-diffrent-private-key-for-same-account/1693 "2023-11-16T08:49:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shridhar.c](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@shridhar.c](https://builder.metamask.io/u/shridhar.c)\
**Post date:** [November 16, 2023, 8:49am UTC](https://builder.metamask.io/t/archive-diffrent-private-key-for-same-account/1693/1 "2023-11-16T08:49:56Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **shridhar.c** on 11/16/2023.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

When asking for help in this category, please make sure to provide the following details:

- SDK Version:1.0.0
- Platform: fluttre
- Browser Console Screenshots:
- If the issue is related to Custom Authentication, please include the following information (optional):
  - Verifier Name: “googel\_provider”
  - JWKS Endpoint:
  - Sample idToken (JWT):eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImhjZTFyMGZtQklGOTdfUXB2anZ5ZSJ9.eyJnaXZlbl9uYW1lIjoiR2VldGhhIiwiZmFtaWx5X25hbWUiOiJDaG91ZGhhcmkiLCJuaWNrbmFtZSI6ImNob3VkaGFyaWdlZXRoYSIsIm5hbWUiOiJHZWV0aGEgQ2hvdWRoYXJpIiwicGljdHVyZSI6Imh0dHBzOi8vbGgzLmdvb2dsZXVzZXJjb250ZW50LmNvbS9hL0FDZzhvY0xIemVxcEgxNHlXS0F5QmwxMjdJa1RsODUtWllDNWR5RktDeG9vZm9waj1zOTYtYyIsImxvY2FsZSI6ImVuLUdCIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMTZUMDg6NDE6MTMuMDgwWiIsImVtYWlsIjoiY2hvdWRoYXJpZ2VldGhhQGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJpc3MiOiJodHRwczovL2Rldi0ydGZkZDdkemoxM2liZmVsLnVzLmF1dGgwLmNvbS8iLCJhdWQiOiJpTklaRlB2NTlZWFdFaEhUU1BrYXdJZnoxa2FrTXFzZiIsImlhdCI6MTcwMDEyNDA4OSwiZXhwIjoxNzAwMTYwMDg5LCJzdWIiOiJnb29nbGUtb2F1dGgyfDExMzk3MjUyNjkwNTk2Mzg3NTY4MSIsInNpZCI6ImVXWlI5MlM4UEhfSmxNLVpiaTU3MFdlak9zbktuajNzIn0.OZ1XDRG-tXw37GEXOfn60fi8N95Bdj60FtOOnVkA5uJXSAwQ0kEGpkykRDL2afndSn-lN8NSjTyBKyupIxw9OoKLvgLfdKaBR0LytV6xMidoZCK2C5v2WUajChkYawCAAzMSepirmswAfJwYMj08i-zWDty3M49DeKfwoaA1YFG3AQDiFGHD0bwsSKn-TF

```auto
class Auth0WalletHandler extends WalletHandlerInterface {
  final _SingleFactorAuthFlutterPlugin = SingleFactAuthFlutter();
  final _verifier = "googel_provider";
Credentials? get credentials => AppDependency.instance.getItInstance
.get<AuthHandlerInterface>()
.credentials;
@override
Future<void> initSdk() async {
if (Platform.isAndroid) {
_init().then((value) => _initialize());
} else if (Platform.isIOS) {
_init();
_initialize();
} else {}
}
Future<void> _init() async {
await _SingleFactorAuthFlutterPlugin.init(
Web3AuthNetwork(network: TorusNetwork.testnet));
}
Future<void> _initialize() async {
await _SingleFactorAuthFlutterPlugin.initialize();//privateKey =
}

```

Here, to authenticate I used auth0 and after that, getting private key useing SingleFactAuthFlutter library as

> {“privateKey”:9671347944998855650472…09484196075390732661251988928411312880973876490,“publicAddress”:“0x20d7A20c9AE82…Db6AB4228045B3B797cea”}

But When i used web3auth\_flutter i was receiveing diffrent prvate key as

> 21f79799a14b79bd2798da5e2155d42…d237db777bf833516199d

Why is this. My understanding, we shoud receive same private key in both way

---

<div class="post-metadata">

**Author:** ![vjgee](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vjgee](https://builder.metamask.io/u/vjgee)\
**Post date:** [November 16, 2023, 12:12pm UTC](https://builder.metamask.io/t/archive-diffrent-private-key-for-same-account/1693/2 "2023-11-16T12:12:55Z")

</div>

@shridhar.c Thanks for your recent post.

Your issue has been forwarded to our Dev team and we will get back with further updates.

---

<div class="post-metadata">

**Author:** ![pepper](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@pepper](https://builder.metamask.io/u/pepper)\
**Post date:** [November 17, 2023, 6:48am UTC](https://builder.metamask.io/t/archive-diffrent-private-key-for-same-account/1693/3 "2023-11-17T06:48:01Z")

</div>

Hello @shridhar.c , thanks for asking question.  
First, in your case it’s migration from the pnp sdk to sfa sdk.  
it’s possible to get same private key using both sdk, by setting usepnpkey to `true`.  
check out the following documentation.

 ![](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/4bea15d5fdfd372b2e7fae21263c61fab3da9379.png)

```
  <a href="https://web3auth.io/docs/troubleshooting/different-private-key#to-single-factor-auth-sfa-sdks" target="_blank" rel="noopener">web3auth.io</a>

```

### [Different Private Keys/ Wallet Address across Integrations | Documentation |...](https://web3auth.io/docs/troubleshooting/different-private-key#to-single-factor-auth-sfa-sdks)

Different Private Keys across Integrations | Documentation - Web3Auth

But one thing here is that for mobile sdk like sfa ios, flutter, android,  
we don’t have such option for that, since it’s quite new SDK.

Adding usePnpKey is in our pipeline and we will release soon.  
Thanks.

---

<div class="post-metadata">

**Author:** ![shridhar.c](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@shridhar.c](https://builder.metamask.io/u/shridhar.c)\
**Post date:** [November 17, 2023, 7:06am UTC](https://builder.metamask.io/t/archive-diffrent-private-key-for-same-account/1693/4 "2023-11-17T07:06:40Z")

</div>

Thanks, Please notify here when this feature is released
