Closed AgentJ-WR closed 4 years ago
The current version (0.13.x) of this library uses async/await. It looks like you are using a previous version, which used callbacks. You can see the docs for 0.12.x at https://github.com/libp2p/js-peer-id/tree/0.12.x.
The example in the readme does not work out of the box. This one will work just fine.