Import metamask web3j keys to Libp2p
Open
Nobody has claimed this yet.
need/analysis
- Dominant language
- JavaScript
- Stars
- 81
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
How can I create a libp2p key from the metamask ethereum's public key
I tried:
const web3 = window.web3
const accounts = await web3.eth.getAccounts()
this.setState({ account: accounts[0] })
console.log(accounts)
let temp = await PeerId.createFromPubKey(accounts[0])
I am getting error in the last line.
Help please.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the PeerId.createFromPubKey call and the accounts[0] value shown in the issue, then check the replacement project at https://github.com/libp2p/js-libp2p-peer-id. The issue does not define an implementation target or completion criteria, so confirm whether Ethereum/MetaMask key import is supported before determining what would be done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cryptography
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100