I tryam trying to build an exercise. I want to produce a random 256-bit seed to give as an input and ask for creating a Monero stealth address.
What are the restrictions on this seed in practice? I know it must be a legitlegitimate scalar, but is that satisfied by theit being 256-bit length? Can it be any random 256-bit number? If not, is there a jsjavascript library for that calculation?
I have to write this exercise's grading program in nodejs (it is part of a bigger project). Does anyone know where I can find a jsjavascript library that supports the needed calculations? (e./keccak, g./bytes_to_words keccak, ./words_to_bytesbytes_to_words, ./sc_reduce32words_to_bytes, ./private_key_to_public_keysc_reduce32, private_key_to_public_key).
For reference, the process for the calculation of a Monero stealth address is explained here very well.