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

genkey: always results in "Input error (class 'TypeError')" / not working at all #78

Open
HoboDev opened this issue Jul 17, 2024 · 1 comment

Comments

@HoboDev
Copy link

HoboDev commented Jul 17, 2024

OnlyKey CLI v1.2.10
OnlyKey FW v3.0.4-prodc

I'm trying to generate a key following the commands (genkey [key slot] [type] [features]) but it does not work at all.

Output:

OnlyKey> genkey ECC1 x s

<class 'TypeError'>
Input error. See available commands with examples here https://docs.crp.to/command-line.html

Also this part taken from the examples seems to mismatch with the documentation above (and also does not work, it yields the same error as above)

Generate ECC key in slot ECC1 to a custom value (Slots ECC1-ECC16 are available for ECC keys. Supported ECC curves X25519(x), NIST256P1(n), SECP256K1(s))

$ onlykey-cli

OnlyKey> genkey ECC1 x

Successfully set ECC Key
@HoboDev
Copy link
Author

HoboDev commented Jul 17, 2024

looking at this file python-onlykey/onlykey/cli.py
in line 406 and line 939 it does not look like it's doing anything generative either way (except we are talking magic number):

only_key.setkey(slot_id, sys.argv[3], sys.argv[4], 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')

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

1 participant