Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: ed25519 keys by default #3693

Merged
merged 5 commits into from
Aug 11, 2021
Merged

feat: ed25519 keys by default #3693

merged 5 commits into from
Aug 11, 2021

Conversation

lidel
Copy link
Member

@lidel lidel commented May 18, 2021

This PR is wip to switch from RSA to ed25519 to match what we already do in go-ipfs.

When merged, this should close #3591

TODO

  • clarify helptext that bits is only applied to RSA keys
  • ipfs init should default to ed25519
  • ipfs key gen should default to ed25519
  • tests should pass
  • why Ed25519 (current js-ipfs) vs ed25519 (go-ipfs)? a typo or on purpose?
    • FYSA ./packages/ipfs-cli/src/commands/init.js has @param {'RSA' | 'Ed25519' | 'secp256k1'} argv.algorithm

This switches from RSA to ed25519 to match what we already do in
go-ipfs.
@achingbrain
Copy link
Member

achingbrain commented Aug 11, 2021

why Ed25519 (current js-ipfs) vs ed25519 (go-ipfs)? a typo or on purpose?

It's the KeyType declared by libp2p-crypto, though on the CLI it should be the same as go-ipfs.

@achingbrain achingbrain marked this pull request as ready for review August 11, 2021 14:22
@achingbrain achingbrain merged commit 33fa734 into master Aug 11, 2021
@achingbrain achingbrain deleted the feat/ed25519-key-default branch August 11, 2021 14:35
SgtPooki referenced this pull request in ipfs/js-kubo-rpc-client Aug 18, 2022
Switch from RSA to ed25519 to match what we already do in go-ipfs.

Closes ipfs/js-ipfs#3591

Co-authored-by: achingbrain <alex@achingbrain.net>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JS-IPFS misrepresents key IDs when Ed25519 keys are generated
2 participants