Skip to content

nucypher/alpha-leaks-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpha leaks demo

Warning

This is an outdated demo that will not work with recent versions of taco-web

See the live demo here.

This is a demo that illustrates a use case of Nucypher's Conditions-Based Decryption.

This is a weblog. There are three levels of subscription. Each subscription level will let you access the posts corresponding to your subscription. Subscription levels are defined by the balance of MultiFaucet NFTs your account owns.

A bronze subscription will let you read only the Bronze posts. One NFT is needed.

A silver subscription will let you read Bronze and Silver posts. Two NFTs are needed.

A gold subscription will let you read Bronze, Silver, and Gold posts. Three NFTs are needed.

The decryption of the posts is done by Nucypher's CBD technology. CBD will check the balance of NFTs and show you the corresponding blog posts.

Usage

To run this demo you will need to have MetaMask installed and an account with sufficient MATIC on Polygon Mumbai testnet to fund the "Create Policy" contract method call.

Additionally, to have decryption rights over the posts, you will need some MultiFaucet NFTs on the Polygon Mumbai testnet. The balance of this ERC721 token will determine the subscription level and, therefore, the number of posts you will be able to see.

Both, MATIC and MultiFaucet NFTs can be claimed in Paradigm MultiFaucet.

Installation

Requires node version 16 or later.

$ yarn install

$ yarn build

$ yarn start

References

The example project react-webpack-5-experiments has been used as a base for this demo.