N8n Community Nodes External Libraries

Describe the problem/error/question

I am building a community node, and it works great. However, it includes a custom webhook trigger. Our system provides an ED-25519 signature in the webhook payload, which you can use with your public key (configured as a parameter) to verify the origin and authenticity of the origin. The problem is that I don’t want to have to write my own ED-25519 implementation, if possible. We use the @noble/ed25519 library and @noble/hashes libraries in our own SDK and examples. However, the community node guidelines state that we can not include extra dependencies.

I can take the code I need from @noble and include it in my repo, but I’m not sure how deep that goes. What options do we have for this?

I should have dug a little deeper, it turns out the noble library is very small and only a single file with no dependencies, so I just copied it into my node and won’t need an extra dependency. However, this may come up in the future, as we’re doing a lot of crypto, and libraries like ethers.js end up being really helpful just for doing validation inside the field descriptions.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.