libp2p crypto error - Not implemented
Version: Deno 1.43.3
I'm trying libp2p on deno and i'm getting this error from the crypto package:
Is there a way to solve this? like replacing the module in the importmap or something?
![No description](https://cdn.answeroverflow.com/1239614859503603835/330127674-c2db23cf-f01d-4f20-879c-ec7ac6bc3826.png)
2 Replies
original issue: https://github.com/denoland/deno/issues/23789
GitHub
libp2p crypto error - Not implemented · Issue #23789 · denoland/deno
Version: Deno 1.43.3 I'm trying libp2p on deno and i'm getting this error from the crypto package: this is my code import { gossipsub } from "npm:@chainsafe/libp2p-gossipsub"; imp...
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided, it seems like you're encountering a "Not implemented" error from the crypto package within the libp2p module.
This error typically indicates that a certain feature or function you're trying to use is not yet implemented in the version of the package you are using. If this is the case, there might not be a straightforward fix such as replacing the module in the import map, as the underlying functionality simply does not exist in the implementation you are using.
Without more specific details about the code that's causing the error, it's difficult to provide a precise solution. However, here are a few general suggestions you might consider:
1. Ensure that you are using the latest version of the libp2p module that is compatible with Deno, as newer versions might have implemented the feature you are trying to use.
2. Check the libp2p module's documentation or repository for Deno-specific instructions or branches, as there might be Deno-compatible versions or forks of the library.
3. Look for alternative modules or workarounds that provide the functionality you need.
Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of the advice given and consult the libp2p module's documentation or community for more specific guidance.