RuanAragao / good-luck-api

Random Number Generator and Storage
https://good-luck-api.vercel.app
MIT License
4 stars 4 forks source link

Unique private key generation. #17

Open RuanAragao opened 3 years ago

RuanAragao commented 3 years ago

Upon receiving a request, generate a unique private key linked to the number and timestamp. This key will be used to validate ticket holder ownership.

How would be the best way to do this? Generate a hash? What kind?

Miru5 commented 3 years ago

hey I'd do something like number-timestamp-hash and for the hash I'd use bcrypt (one way encryption)

dgleon commented 2 years ago

Hi, i think the web3 method is good. https://web3js.readthedocs.io/en/v1.5.2/web3-eth-accounts.html#wallet-create