Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Support ed25519 and secp256k1 in the import method #145

Description

@satazor

Hello!

I was trying to publish a IPNS record using a ed25519 key after seeing that support for ed25519 and secp256k1 keys was added here. I know that peer-id has to be changed to account for different key types, but I still decided to give it a try.

After trying, I concluded that js-ipfs calls crypto.keys.import and fails because the import method assumes only RSA keys.

I can make a PR that adds support for ed25519 and secp256k1 keys by first extracting the private key info stored in the pem and react accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions