Skip to Content
Hands-On Blockchain for Python Developers
book

Hands-On Blockchain for Python Developers

by Arjuna Sky Kok
February 2019
Intermediate to advanced
450 pages
9h 59m
English
Packt Publishing
Content preview from Hands-On Blockchain for Python Developers

Writing the smart contract for the Twitter–like application

We are now going to build a censorship resistant, Twitter-like application. This means that even the owner of the smart contract could not delete a tweet from the user of the smart contract. This Twitter-like application is very simple; there is no option of following, liking, or retweeting; it just consists of tweets. In addition, the user cannot delete their tweets and they must be less than 32 bytes, which is even shorter than the original tweet limit in Twitter!

We now come back to our Populus project to modify our project.json file. Add this to project.json:

"ganache": {   "chain": {     "class": "populus.chain.ExternalChain"   },   "web3": {     "provider": { "class": "web3.providers.HTTPProvider", ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Blockchain in Action

Blockchain in Action

Bina Ramamurthy
Learn Python by Building a Blockchain and Cryptocurrency

Learn Python by Building a Blockchain and Cryptocurrency

Academind by Maximilian Schwarzmüller GmbH

Publisher Resources

ISBN: 9781788627856Supplemental Content