New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mobile: Import raw key #14481

Closed
ligi opened this Issue May 16, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@ligi
Member

ligi commented May 16, 2017

As far as I see there are currently 2 ways to import a key:

  • from JSON file via importKey(ByteArray,String,String)
  • from presale JSON file via importPresaleKey(ByteArray,String)

It would be great to be able to import a plain private key (like the ones MyEtherWallet prints on the paper-wallet)

@romangrechin

This comment has been minimized.

Show comment
Hide comment
@romangrechin

romangrechin Mar 12, 2018

ecdsaKey, err := crypto.ToECDSA(common.Hex2Bytes("3acb54c6a6ce647d8ae0d74907bbd2c67ae285d4e4abe4b578d0403020e2d4e4"))
if err != nil{
    log.Fatal(err)
}
auth := bind.NewKeyedTransactor(ecdsaKey)

romangrechin commented Mar 12, 2018

ecdsaKey, err := crypto.ToECDSA(common.Hex2Bytes("3acb54c6a6ce647d8ae0d74907bbd2c67ae285d4e4abe4b578d0403020e2d4e4"))
if err != nil{
    log.Fatal(err)
}
auth := bind.NewKeyedTransactor(ecdsaKey)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment