Skip to content
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

moonbeam key generate --scheme ecdsa does not generate a valid Ethereum/Moonbeam key #2371

Open
JoshOrndorff opened this issue Jun 27, 2023 · 1 comment

Comments

@JoshOrndorff
Copy link
Contributor

$ docker run -it purestake/moonbeam:latest key generate --scheme ecdsa
Secret phrase `usual enter midnight depend food rack angry curtain laugh brother word pact` is account:
  Secret seed:       0x8cdb2bcf7951bc673d791061e809c1739ab0c21871207e3f68361bb43f7405cc
  Public key (hex):  0x0382e1266710c52f2aa994e3ed4ac70b509dccf2ca33e8a864327ec1f4bf0cb359
  Public key (SS58): KWBfv7GEgJak3zxB3cA8jQXtsR6b2LK3EaZC7QFwfYvSBu8gz
  Account ID:        0x7ffaa2132f39cdaa2fb11fa42d65fe0df82e2d3751ea6a60cd7fc9185ff2313e
  SS58 Address:      5ExWPhHRfLn8UzWa22GhLxwQe4Mvk7jwUUKfvBUZXYm1xsxd

Look at that AccountId. 0x7ffaa2132f39cdaa2fb11fa42d65fe0df82e2d3751ea6a60cd7fc9185ff2313e It is 32 bytes long. I would expect this command to give me information that I could import into eg metamask. Or at minimum give me a 20 byte account id.

@JoshOrndorff
Copy link
Contributor Author

And actually, ecdsa should probably be the default, or maybe even the only scheme available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant