Skip to content

encoding/hex: invalid byte: U+000A #100

@singlerider

Description

@singlerider

Issue: If creating API keys in-browser through common flow, privileged user is advised to:

Save your API private key(s) now.

Copy the API private key(s) below and save it somewhere safe. API private keys will only be shown once and cannot be recovered by Turnkey. Your key will not be activated until you successfully approve this activity.

If copying keys material to appropriate directory, (~/.config/turnkey/keys/default.*), the following error is produced from the CLI before attempting to hit the Turnkey network:

$ ./turnkey.linux-x86_64 request --path /api/v1/sign --body '{"payload": "test"}'
{
   "error": "failed to recover key from private key file \"~/.config/turnkey/keys/default.private\": encoding/hex: invalid byte: U+000A"
}
FAIL: 1

This happens regardless of text editor used to do the copy/paste/insert/saving. Privileged user is effectively blocked.

OS: Arch Linux
Turnkey CLI version: built from source at 364cb63 (./turnkey.linux-x86_64)

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