libp2p / libp2p/js-peer-id

Add matchesPrivateKey and matchesPublicKey

Open
#23 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted status/ready
Dominant language
JavaScript
Stars
81
Forks
42
PR merge metrics
No merged PRs in 30d

Description

These are needed in js-libp2p-secio. Reference implementation in go: https://github.com/ipfs/go-libp2p-peer/blob/master/peer.go#L55-L67

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 with the linked go-libp2p-peer peer.go reference, then inspect this repository's peer ID implementation to locate the matching entry points. Add matchesPrivateKey and matchesPublicKey with behavior consistent with the reference; done means both methods are available for js-libp2p-secio.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.