Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi: add basic paywall support #191

Merged
merged 10 commits into from
Dec 21, 2017
Merged

multi: add basic paywall support #191

merged 10 commits into from
Dec 21, 2017

Conversation

jolan
Copy link
Contributor

@jolan jolan commented Dec 15, 2017

This adds basic support for requesting payments in DCR for users/proposals by adding some columns to the database for storing the payment address, amount, fulfillment tx, etc. for The www refclient has support for using the testnet faucet to pay fees.

The basic premise is that you'd setup a cold wallet and create two accounts
(politieauserpayments, politieaproposalpayments) and then
dcrctl getmasterpubkey on those accounts and plug those into
politeiawww and politeiad confs respectively and payments would go to addresses
belong to the accounts belonging to that cold wallet.

Closes #123.
Closes #125.

NOTE: This does nothing on the enforcement side yet. We still need to figure out some other
implementation details like revising the signup flow (#41) and whether or not we still want a
captcha (#29) and having a user landing page (#59).

I was thinking the 'create a new account' form should contain some
verbiage that explains that a fee of (user fee amount) payable in DCR is
required to create an account and an additional per-proposal fee of
(proposal fee amount) is also required for each proposal that way users
know exactly what they're signing up for. Then once they click
'Sign Up' they will go to a user landing page with a form that says:

Step 1) Please send x.xx DCR to TsExampleAddr
Step 2) Verify your email (disabled/greyed out)

There is a decent GUI for requesting payments and presenting a QR code
and polling and updating status in dcrpayments. It needs to be ported to
politeiagui/react though. (decred/politeiagui#106)

Since we wouldn't send the verification email until after payment is
confirmed, I don't think we'd need to worry about rate limiting signups. (#86)

I don't have any ideas for proposal enforcement since I haven't looked at that part
yet. It could be as simple as warning the admin that they shouldn't publish it because it's not paid.

Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-ok

@marcopeereboom marcopeereboom merged commit d001f3d into decred:master Dec 21, 2017
@jolan jolan deleted the jolan_paywall branch January 5, 2018 21:42
vibros68 pushed a commit to vibros68/politeia that referenced this pull request Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants