Skip to content

Web3 account extract not working with version 4 keystore  #290

Description

@vinaywebcom

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions