Become genuinely interested in other people

If you want that other like you so you should keep this principle in mind: “Become genuinely interested in other people”. If you take interest in others, they would feel happy to do friendship with…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Bitcoin Cash Smart contracts

Today I want to speak something interesting. It's about Smart contracts on top of the Bitcoin cash Blockchain. For those of you who don't know what is Bitcoin cash. Bitcoin cash is a hard fork of the Bitcoin Blockchain in which people spoke about scalability and transaction fee, the volume of transactions. i.e in simple words Bitcoin, the community decided to create a new blockchain which can accommodate a larger size of blocks and less transaction fee on the transactions. Apart from all that instant transaction is there to blow up your mind, I mean practically no that instant but its really better than bitcoin transaction speed. If you don't know what is a fork, let me help you to understand it, A hard fork is a permanent divergence from the previous version of the Blockchain, and nodes running previous versions will no longer be accepted by the newest version.

hard fork

What's so special about Bitcoin cash?

There isn’t a much of a difference between Bitcoin and Bitcoin cash. Both of them are built to serve the same purpose “Peer to Peer Digital cash”. Below are some of the interesting facts about the Bitcoin and Bitcoin Cash.

Bitcoin vs Bitcoin Cash

Can we create smart contracts on Bitcoin Cash?

Yes! we can write smart contracts on Bitcoin Cash. Well, let me tell you what are the difficulties we gonna face in writing the Bitcoin Cash smart contracts.

Let us code our first Bitcoin cash smart contract:

2. Create a new project:

3. To launch run :

4. For a list of Haskell commands:

5. Clone the “Spedn”

6. Build “Spedn”

7. Create a directory for a smart contract:

8. Let's consider a case for writing our smart contract:

Let’s assume Alice want to tip a waiter Bob with a paper wallet but she wants to be sure that the coin will not get lost due to Bob losing the paper.

This contract locks a coin in such a way that Bob can redeem it at any time but if he didn’t do so in 7 days then Alice can get it back.

9. Compile your smart contract:

10. Compiled contract template:

Open source

Add a comment

Related posts:

Blockchain and Hashing Technology

The fundamental part of blockchain technologies are hash functions. If you understand hash functions ,you can understand the related concepts more easily. To get an output of a fixed length we use…

How To Write Creatively

Creative writing is one interesting topic to explore in the field of writing, but before we proceed with discussing the main aim of this article, let’s have a brief brush-up of the basics. Creative…

Can I Install Metal Roof Over Shingles?

Most homeowners consider dumping their asphalt shingles with the intent to enjoy the benefits of metal roofing. However, they probably don’t know installing a metal roof over shingles is a viable and…