The Interledger Community 🌱

Cover image for How to can I do 'exclusive content generation' on our webapp?
Xander Jake de los Santos
Xander Jake de los Santos

Posted on

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

I guess this is a question for @wilsonianb since I saw that you contributed to the exclusive content generator. It's very cool!

Is there a way to add it on our project? I want our users to create posts as they do and not go to another website to make their content secure. I was thinking of just copying your code from github?? Idk if that's allowed or how do I give credit...

Thanks!

Top comments (6)

Collapse
 
wilsonianb profile image
Brandon Wilson

Hi @xanderjakeq
You're free to make use of the source code according to its open source software license.

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.

Collapse
 
xanderjakeq profile image
Xander Jake de los Santos • Edited

is it a good idea to make this an npm package?

Collapse
 
xanderjakeq profile image
Xander Jake de los Santos

I was going to make a separate post, but this is still related to this. So I'll just make it a comment.

How in which cases does monetizationprogress event fails to give a receipt?
I don't know why I'm getting undefined...

detail:
  amount: "185"
  assetCode: "USD"
  assetScale: 9
  paymentPointer: "$ilp.uphold.com/q8weYzAPqbGh"
  receipt: undefined
  requestId: "9e9ce75e-a052-48fc-9961-e5dbec8dbdfb"
Enter fullscreen mode Exit fullscreen mode
Collapse
 
xanderjakeq profile image
Xander Jake de los Santos