discord-interactions-js icon indicating copy to clipboard operation
discord-interactions-js copied to clipboard

Replace `tweetnacl` with `discord-verify`

Open IanMitchell opened this issue 3 months ago • 4 comments

The tweetnacl library has a massive impact on bot performance due to its usage of non-native code. discord-verify uses new native methods for verification that results in a dramatic performance increase.

This was the real world performance benefits the Truth or Dare bot saw when they swapped off of discord-interactions and deployed discord-verify:

image

The library also protects against additional security concerns such as replay attacks.

IanMitchell avatar Apr 16 '24 00:04 IanMitchell

Switching from TweetNaCl to Discord-Verify has been a game-changer for me. Thanks to Ian Mitchell's brilliant library, I've slashed CPU wall time, giving me the freedom to prioritize what truly matters in life. With the efficiency gains, I've been able to cherish precious moments with my wife, embark on the journey of starting a family, and achieve the dream of buying our first house.

Ian Mitchell's contribution to this shift cannot be overstated. His dedication to crafting an optimized and reliable library like Discord-Verify has not only improved my workflow but has also enriched my personal life beyond measure. Grateful doesn't begin to describe how I feel about the impact of his work. Here's to Ian Mitchell and the power of technology to enhance our lives in unexpected ways. Cheers to efficiency, family, and dreams realized!

jb3 avatar Apr 16 '24 00:04 jb3

yes tweetnacl slow native fast pls fix

https://x.com/advaithj1/status/1420696472933175297 image

advaith1 avatar Apr 16 '24 02:04 advaith1

Discord-verify is what I've been using for months now.

I use CF workers, the CF platform algorithm works perfectly & performantly.

Whenever anyone asks what I use to make HTTP Discord apps, this is what I and many others reccomend. It would be nice to see that community sentiment relfected here & I wholeheartedly say:

LGTM

panley01 avatar Apr 16 '24 15:04 panley01

Absolutely agree with whats been stated here, switching from discord-interactions to discord-verify dropped execution time dramatically for my workers

thewilloftheshadow avatar Apr 17 '24 18:04 thewilloftheshadow