Search code examples
cryptographyethereummetamask

Why I can't import private key to metamask?


I'm new. Sorry for maybe the stupid question. Please, help me to understand why I can't import this private key to metamask:

FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE8AF48A04CBFD47E8CB0366361

Well, I've changed couple of symbols. Thank you very much!


Solution

  • FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE8AF48A04CBFD47E8CB0366361 although a valid 256-bit value, isn't a valid secp256k1 private key.

    Not all 256-bit strings are a formally valid private key; The key must be a positive integer less than 𝑛, the order of the largest prime order subgroup.

    i.e less than FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141