How to generate secret keys
PomegranateApps opened this issue · comments
I'm familiar with generating secret keys randomly and also from a secret phrase using bitcoinjs-lib.
How do I do the same thing with Tapscript? For instance, I have my secret phrase but I'm not sure how to format it to a hex string as shown in the examples.
I apologize for the delay. Please check out my crypto-tools
library. There is a tool for creating secret keys. You can also create it from a phrase by using an encoder such as my Buff
library, or new TextEncoder.encode()
in order to convert a string into bytes, then use that string as a secret key.