keybase / keybase/keybase-issues

can not import existing curve25519 key, as public key extraction fails

Open
#2,888 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
899
Forks
40
PR merge metrics
No merged PRs in 30d

Description

When I try to import the appended key, I face the following error:

$ keybase pgp select
[...]
▶ ERROR key generation error: Failed to get pubkey: Unknown key type: 22

This is a signing subkey setup.
How can I help fixing the issue?

-----BEGIN PGP PUBLIC KEY BLOCK-----

mDMEWLrxrxYJKwYBBAHaRw8BAQdANMQTMHCDe01sAjxY2g5VFec0Kg0DOKGUVuOp
g8hQG/e0M0RhbWlhbiBEb21pbmlrIE1hcnRpbmV6IERyZXllciA8ZGFtaWFuQG1h
aWxib3gub3JnPoiWBBMWCgA+FiEEME8MPqmq/ISiY4wUYTctqFqyP7AFAli68a8C
GwMFCQHhM4AFCwkIBwMFFQoJCAsFFgIDAQACHgECF4AACgkQYTctqFqyP7DGiwEA
jEYwXVCyiMVNslzpO+gvWwsPYw5VANVTQtu5sInINyoA/1aKK7mf2qkkxNU+5k3f
jiRj0J5mpuP6r5cGEoaw/BcLtENEYW1pYW4gRG9taW5payBNYXJ0aW5leiBEcmV5
ZXIgPG1hcnRpbmV6ZHJleWVyQGNhbXB1cy50dS1iZXJsaW4uZGU+iJYEExYKAD4W
IQQwTww+qar8hKJjjBRhNy2oWrI/sAUCWLr4IAIbAwUJAeEzgAULCQgHAwUVCgkI
CwUWAgMBAAIeAQIXgAAKCRBhNy2oWrI/sEHGAP0Tw2y7jgBt3DM7GpoukBQ7qsAJ
QK5dnZT2n39hVHH8lQEA1X2Bz3b1qD5j8l7X56hgGhDXoAUxlrYMS/Q3PsEpGQG0
QERhbWlhbiBEb21pbmlrIE1hcnRpbmV6IERyZXllciA8ZGFtaWFuLm1hcnRpbmV6
ZHJleWVyQGdtYWlsLmNvbT6IlgQTFgoAPhYhBDBPDD6pqvyEomOMFGE3Lahasj+w
BQJYuvhpAhsDBQkB4TOABQsJCAcDBRUKCQgLBRYCAwEAAh4BAheAAAoJEGE3Laha
sj+wOqIBAKrX4UTx+ZvC5cUFCyJceO0c0kSWdnD4uIfL7fgbV/GjAQDoqJR/zw0e
zIsThKf0lGC9ikibciWTZ2qvT9BfL+YJCbg4BFi68a8SCisGAQQBl1UBBQEBB0Bx
k9ZLcHPUY67U9FTrj+RdLc1YH5gOFHmEYGlnapogUgMBCAeIfgQYFgoAJhYhBDBP
DD6pqvyEomOMFGE3Lahasj+wBQJYuvGvAhsMBQkB4TOAAAoJEGE3Lahasj+wnHQB
AOJtkYUecxnHb1bHX6WsZA7evJ2pkFfkR4PCL6JKpv57AQCw9e/Yd8WJmPF8lqMM
Q0zez+Ha9tM7FFLaqxz1u8TuCLgzBFi69hwWCSsGAQQB2kcPAQEHQFLm1QR0+E6o
w+pQ50bMhQdxuvWHKpPHwbjeFE+xi9nOiPUEGBYKACYWIQQwTww+qar8hKJjjBRh
Ny2oWrI/sAUCWLr2HAIbAgUJAeEzgACBCRBhNy2oWrI/sHYgBBkWCgAdFiEEMO0g
sLHj1z3VOMo2+O4oY6Z02JkFAli69hwACgkQ+O4oY6Z02JmQEwD/cr/ul7AjvnlM
uuM6m0nFRUtOm7yuCzaDHr6HEcMx96MA/1oFzFyzvrmiN6yyzFuTHh5XZUj5Yoyx
XuGGf1py2ewOMCgBAKjzPz9t4u5V46rzhYIO4ighXjy76LEfcTYk89Fu9xq3AQCb
+ZoNv02Kpn2SsVGWlqwNNaCIdH6ps65xvcHleQzMDA==
=LZq/
-----END PGP PUBLIC KEY BLOCK-----

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the supplied key through the keybase pgp select entry point. Trace public-key extraction around the reported unknown key type 22 and determine the expected handling for this signing-subkey setup; done means the existing key imports without that error.

Written by the indexing model from the issue text.

Assessment

Domain
cryptography, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.