# Is SUI Wallet plugin compatible with secp256k1 scheme?

**URL:** <https://forums.sui.io/t/is-sui-wallet-plugin-compatible-with-secp256k1-scheme/44139>\
**Category:** Wallets\
**Created:** [May 6, 2023, 7:29pm UTC](https://forums.sui.io/t/is-sui-wallet-plugin-compatible-with-secp256k1-scheme/44139 "2023-05-06T19:29:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodion\_at\_Chirp](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/rodion_at_chirp/32/17333_2.png) [@Rodion\_at\_Chirp](https://forums.sui.io/u/Rodion_at_Chirp)\
**Post date:** [May 6, 2023, 7:29pm UTC](https://forums.sui.io/t/is-sui-wallet-plugin-compatible-with-secp256k1-scheme/44139/1 "2023-05-06T19:29:53Z")

</div>

Hi Friends!

If I use SUI CLI tool to create new wallet with scheme secp256k1 (instead of typical ed25519) I can’t seemingly correctly import it in SUI Wallet Plugin (neither in rival Suiet). If I propagate the 12-word phrase, in both plugins I get the same address, different from the one shown by the CLI tool itself.

Feel free to try this example:

```auto
# sui client new-address secp256k1
Created new keypair for address with scheme Secp256k1: [0x5b554d2a98ecb793a121587e501baf3867f7d1e8f19f217ba1c9d610dfdefce2]
Secret Recovery Phrase : [thrive camera damp milk emerge shy excess traffic canvas assault sting radar]

```

If I find and decode the private key from `.sui/config/sui.keystore` I got

```
0102379810d2a9518567ce67f65b752f644a27ec07c938f6a194eb18b4f982db8b73

```

which, after applying `blake2b` hash, yields exactly the address given by CLI tool (0x5b55…)

it is not possible to import such key into SUI Wallet app since it expects 32 bytes (here is additional 01 prefix - with ed25519 keys it is 00 hence may go unnoticed)

Can please anyone elaborate about current state of support for wallets using secp256k1 scheme? Or maybe I’m missing something or doing critically wrong?

---

<div class="post-metadata">

**Author:** ![Rodion\_at\_Chirp](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/rodion_at_chirp/32/17333_2.png) [@Rodion\_at\_Chirp](https://forums.sui.io/u/Rodion_at_Chirp)\
**Post date:** [May 10, 2023, 6:23pm UTC](https://forums.sui.io/t/is-sui-wallet-plugin-compatible-with-secp256k1-scheme/44139/2 "2023-05-10T18:23:22Z")

</div>

UPD: got answer, supposedly from the core team dev member, that wallet plugin is not supposed to be fed with keys of different schemas rather than default ed25519.

---

<div class="post-metadata">

**Author:** ![mosaicRegressor](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/mosaicregressor/32/30235_2.png) [@mosaicRegressor](https://forums.sui.io/u/mosaicRegressor)\
**Post date:** [May 10, 2023, 6:56pm UTC](https://forums.sui.io/t/is-sui-wallet-plugin-compatible-with-secp256k1-scheme/44139/3 "2023-05-10T18:56:56Z")

</div>

Thanks for updating 🙂

---

<div class="post-metadata">

**Author:** ![trekker](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/trekker/32/17945_2.png) [@trekker](https://forums.sui.io/u/trekker)\
**Post date:** [May 15, 2023, 5:28pm UTC](https://forums.sui.io/t/is-sui-wallet-plugin-compatible-with-secp256k1-scheme/44139/4 "2023-05-15T17:28:51Z")

</div>

That’s right. A while ago I tried to do the same without success. With ed25519 it works nicely though. Would you specifically need secp256k1 for your use case?
