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

Web3 account extract not working with version 4 keystore #290

Open
vinaywebcom opened this issue May 9, 2024 · 2 comments
Open

Web3 account extract not working with version 4 keystore #290

vinaywebcom opened this issue May 9, 2024 · 2 comments

Comments

@vinaywebcom
Copy link

I have this keystore

{
  "crypto": {
    "kdf": {
      "function": "scrypt",
      "params": {
        "dklen": 32,
        "n": 262...,
        "r": 8,
        "p": 1,
        "salt": "..."
      },
      "message": ""
    },
    "checksum": {
      "function": "sha256",
      "params": {},
      "message": "d14..."
    },
    "cipher": {
      "function": "aes-128-ctr",
      "params": {
        "iv": "9c..."
      },
      "message": "67..."
    }
  },
  "description": "",
  "pubkey": "96fc6d7...",
  "path": "m/12381/3600/0/0/0",
  "uuid": "c2345d3f-b242-4ae4-8d54-83.....",
  "version": 4
}

When running command
web3 account extract --keyfile UTC --password password

It is throwing error
ERROR: json: cannot unmarshal object into Go struct field CryptoJSON.crypto.kdf of type string

@treeder
Copy link
Contributor

treeder commented May 9, 2024

Is that file unmodified from your node?

@vinaywebcom
Copy link
Author

Is that file unmodified from your node?

yes, using some python script we were able to get public key and private key. But web3 cli failed.

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

2 participants