It combines IPFS and ERC-721 token standard to allow users to actually own the ebooks that they've paid for. New tokens representing eBooks are minted at the time of initial purchase from the author, and the ownership of that particular ebook shifts as the token changes hands. Users can buy a new book from the author, buy a used book from other readers, and rent books from other readers as well.

prana: showcase

How it's made

It uses IPFS to host the content that's to be consumed, and the contract is built on OpenZeppelin's ERC-721 implementation. The frontend is a NuxtJS App. A new IPFS hash is generated whenever a book author publishes a new book. But the token minting only happens at the time of a book sale, and the token ownership is assigned to the book buyer.