12 word secret phrase to private key conversion

Martian Forest 火星森林
·
·
IPFS
·
An interesting tool

This is the story, I created a new wallet on Trust Wallet for Ethereum, the generation of wallet private key is by the "12 word secret phrase", when I want to import the new wallet to Metamask because certain DApp supports metamask browser extension only.  Metamask can only import private key instead of 12 word secret phrase. 

Metamask can only import private key, but not 12 word secret phrase

Searched a bit on the Internet and found there is source code to convert the secret phrase to private key: 

https://github.com/iancoleman/bip39/releases

The github store of the secret phrase to private key conversion tool

And there is an online version of the code available for the conversion of secret phrase to private key.

https://iancoleman.io/bip39/

And you can input the 12 secret phrase and convert to private key to be used in metamask.  But… wait a second, input the secret phrase over the Internet for processing?  Not a good idea. A rule of thumb is to be extemely careful when you trust something on the Internet.

On Trust Wallet, one can review the secret phrase but not the private key

So I downloaded the html code, and ran it internally in my own virtual web server which doesn't have Internet access at all, so there is no chance of leaking the information unless I am too careless?

The conversion tool running on my virtual web server

And, tada.... it works, the private key were calculated and I successfully import the wallet to Metamask.

An interesting experience, and I learned some useless knowledge, again.

The article is not a good documentation and I haven't even been a documentation writer.



CC BY-NC-ND 4.0 授权

喜欢我的作品吗?别忘了给予支持与赞赏,让我知道在创作的路上有你陪伴,一起延续这份热忱!