Title: Export raw Ed25519 key? · Issue #3000 · nodejs/help · GitHub
Open Graph Title: Export raw Ed25519 key? · Issue #3000 · nodejs/help
X Title: Export raw Ed25519 key? · Issue #3000 · nodejs/help
Description: I'm trying to export an Ed25519 private key without any PEM/DER encoding around it but i'm kind of struggling: key.export({ type: "pkcs8", format: "der" }) gives me a 48-byte Buffer (which makes sense, it's ASN1, not the raw key), but th...
Open Graph Description: I'm trying to export an Ed25519 private key without any PEM/DER encoding around it but i'm kind of struggling: key.export({ type: "pkcs8", format: "der" }) gives me a 48-byte Buffer (which makes se...
X Description: I'm trying to export an Ed25519 private key without any PEM/DER encoding around it but i'm kind of struggling: key.export({ type: "pkcs8", format: "der" }) gives me a 48...
Opengraph URL: https://github.com/nodejs/help/issues/3000
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Export raw Ed25519 key?","articleBody":"I'm trying to export an Ed25519 private key without any PEM/DER encoding around it but i'm kind of struggling:\n```js\nkey.export({ type: \"pkcs8\", format: \"der\" })\n```\ngives me a 48-byte Buffer (which makes sense, it's ASN1, not the raw key), but that makes me wonder if there's any way to get the raw 32-byte private key. I could probably use some ASN1 library to get it from the DER Buffer but that's a little convoluted. It's possible that I'm completely missing something here.","author":{"url":"https://github.com/justablob","@type":"Person","name":"justablob"},"datePublished":"2020-10-01T20:22:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/3000/help/issues/3000"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5be2b65e-80ad-892a-c6b0-4f2abad5f99f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3FE:2D5AB1:D1FEC1:115BAE4:6A4C4941 |
| html-safe-nonce | c80e86d93cd8bfa9a661d22166fb7ce97db9082bb8c76171c2fb47b7d59b8e98 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0ZFOjJENUFCMTpEMUZFQzE6MTE1QkFFNDo2QTRDNDk0MSIsInZpc2l0b3JfaWQiOiI2ODk4MzQ2MTE2MzQyNjMwNzIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f8c2269e175cfdaee8f113c0fb5c4a59d67d73c9b8de14ab06c5ad2504f7b6fa |
| hovercard-subject-tag | issue:713157641 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/help/3000/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09ffed1831316e5df64ea5661f1b05587ef1792d19fdefbd6005ad51db53da16/nodejs/help/issues/3000 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09ffed1831316e5df64ea5661f1b05587ef1792d19fdefbd6005ad51db53da16/nodejs/help/issues/3000 |
| og:image:alt | I'm trying to export an Ed25519 private key without any PEM/DER encoding around it but i'm kind of struggling: key.export({ type: "pkcs8", format: "der" }) gives me a 48-byte Buffer (which makes se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | justablob |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/help git https://github.com/nodejs/help.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 43069468 |
| octolytics-dimension-repository_nwo | nodejs/help |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 43069468 |
| octolytics-dimension-repository_network_root_nwo | nodejs/help |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3996b3b83990e134be6c099ab9a7f48f140ae80f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width