I am building a node server and node server basically digitally signs some messages.
Somehow, the same signature can be replayed, so I need to bring nonce into play.
How can I design this in node.js ? I saw this Link but not sure if it's gonna re-generate the different ones all the time. Does it mean I have to store what was generated previously on the server and when I generate new nonce, I compare it to already generated ones ? I was hoping I didn't have to do it .
Any idea ?