Skip to content

Instantly share code, notes, and snippets.

@snowypowers
Last active January 22, 2018 07:05
Show Gist options
  • Save snowypowers/19206512d0f4e32a98bfad5a4dc79e51 to your computer and use it in GitHub Desktop.
Save snowypowers/19206512d0f4e32a98bfad5a4dc79e51 to your computer and use it in GitHub Desktop.
Neon wallet export differences

Neon wallet json difference

  1. Scrypt parameters should use n, r, and p. size is not required.

  2. Accounts should have a default contract field with properties script, parameters and deployed. For now there is no need to fill them up (neo-gui doesnt crash if its empty) but there are recommended defaults.

Example

NOW

{
    "name": "userWallet",
    "version": "1.0",
    "scrypt": {
        "cost": 16384,
        "blockSize": 8,
        "parallel": 8,
        "size": 64
    },
    "accounts": [
        {
            "address": "ALq7AWrhAueN6mJNqk6FHJjnsEoPRytLdW",
            "label": "keyA",
            "isDefault": false,
            "lock": false,
            "key": "6PYLHmDf7YvDpBAjhbJwjzPWimAhtJDfRWNEnGEGBLadr6BV8BfvvCjKWp",
            "contract": {},
            "extra": null
        }
    ],
    "extra": null
}

CHANGE TO

{
    "name": "userWallet",
    "version": "1.0",
    "scrypt": {
        "n": 16384,
        "r": 8,
        "p": 8
    },
    "accounts": [
        {
            "address": "ALq7AWrhAueN6mJNqk6FHJjnsEoPRytLdW",
            "label": "keyA",
            "isDefault": false,
            "lock": false,
            "key": "6PYLHmDf7YvDpBAjhbJwjzPWimAhtJDfRWNEnGEGBLadr6BV8BfvvCjKWp",
            "contract": {
                "script": "", // verificationScript. neo-gui will not crash with empty string but it will not show the private key without this field.
                "parameters": [
                    {
                        "name": "signature",
                        "type": "Signature"
                    }
                ],
                "deployed": false
            },
            "extra": null
        }
    ],
    "extra": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment