This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Can't generate a new key using ipfs-core #4272
Closed
Description
- Version:
json { version: '0.17.0', commit: '', repo: '12', system: 'amd64/linux', golang: 'go1.19.1', 'ipfs-http-client': '1.0.0' }
- Platform:
Linux darkside 6.0.12-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 8 17:15:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
- Subsystem:
ipfs-http-client
Severity:
Medium
Description:
- I tried to generate a new key by using ipfs-http-client
- It generate a error
HTTPError: unrecognized key type: Ed25519
- It should had generate a new key that I could use with IPNS in ed25519
- I think it happens because the keytype is Ed25519 and not ed25519 (same for RSA instead of rsa)
Steps to reproduce the error:
- Create a configuration of ipfs-http-client
- Generate a new key
import dotenv from 'dotenv';
import { create } from 'ipfs-http-client';
dotenv.config();
const ipfs = create({
url: process.env.IPFS_API,
})
await ipfs.key.gen("KEY");