Crypto-powered Website Paywalls, powered by Cosmos and Bcoin.
Prototype Built for the the Crypto 4 Your Thoughts hackathon.
Pitch Deck here: Slides
This README focuses on the prototype. Please see the pitch deck for full spec and system architecture.
Cryptogateway is a free website plugin which wraps any of your desired content around a custom-priced cryptocurrency paywall.
For each customer, an account will automatically be generated which will store any funds sent to you by your website visitors. Each customer will be mapped to a unique address which is used to verify whether they have paid for website access or not. Once the user has paid, he or she will automatically be granted access to the content.
Paywall disabled={false} // defaults to false (enabled) onClick={false} // defaults to false (auto blocks if false) amount={.0001} // amount to pay for access amountUnits={"Bitcoin"} // unit of payment domain="www.cryptogateway.com" // domain of website excludedUrls={["/"]} // will disable paywall on these url paths. >
Steps for install:
- Create account on Cryptogateway.com - registering your domain name.
- Install dependencies within Paywall.js
- Selectively wrap your sensitive website content (or your entire site) with the Paywall.js component - adding the appropriate payment parameters needed for access.
- /cryptogateway: website
- /server: Lotion/Cosmos server - used for tracking IP address visits
Starting the website.
From the /cryptogateway folder:
yarn && yarn start
Starting the server. From the /server folder:
yarn && node server.js