The Interledger Community 🌱

Discussion on: How to can I do 'exclusive content generation' on our webapp?

Collapse
 
xanderjakeq profile image
Xander Jake de los Santos

how do I make the MASTERKEY?

not sure if it's the one called "Elliptic curve private key" from this.
if it is, what's the right way to add it to the .env file?
it looks like this:

-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIKEubpBiHkZQYlORbCy8gGTz8tzrWsjBJA6GfFCrQ98coAoGCCqGSM49
AwEHoUQDQgAEOr6rMmRRNKuZuwws/hWwFTM6ECEEaJGGARCJUO4UfoURl8b4JThG
t8VDFKeR2i+ZxE+xh/wTBaJ/zvtSqZiNnQ==
-----END EC PRIVATE KEY-----
Enter fullscreen mode Exit fullscreen mode

do I omit the headers and footer, then make it a long string?
MASTERKEY="privatekeystring..."

sorry for all the questions lol

Collapse
 
wilsonianb profile image
Brandon Wilson

do I omit the headers and footer, then make it a long string?
MASTERKEY="privatekeystring..."

👍
I think it can be any random string (not necessarily an ec private key).
Just enter it when prompted after running wrangler secret put MASTERKEY.