As other's have mentioned. A secret key is just a securely random 32byte number. That's it. The reason that libraries don't include this, is because there is no safe, unified, and guaranteed place to get random data from on all platforms.

Reply to this note

Please Login to reply.

Discussion

yes, i understand the concept behind it. ive just leaved this part in my binding library as well. or at most i would add a secret key generate method with warning and documents about how it works.

the library: https://github.com/kehiy/go-secp256k1

i would appreciate any kind of contributions as well. 🫡

I have a project that might interest you, or at least make some things easier for you.

https://www.vaughnnugent.com/resources/software/modules/noscrypt

thanks a lot. i would take a look at it. 🫡