Starting from:

$30

CSE598-Project 2 Solved

This document contains description of tasks required to complete PROJECT 2 assignments. This project will help you familiarize with the Dash public blockchain ecosystem by helping you understand, write and execute cryptocurrency-based financial transactions.  

For this project you will be working with Dash public blockchain and Hyperledger Fabric frameworks. Dash is a P2P payments network and cryptocurrency that is used to record transactions on a blockchain. In this project you will use a Dash library in NodeJS programming language for writing transactions on the

Dash blockchain network (the testnet). Read more about Dash blockchain network on this link

(https://dashplatform.readme.io/docs/introduction-what-is-dash)

Financial transactions on public blockchains
Bitcoin is the most popular public blockchain out there for sending payments. However, while Bitcoin might be the oldest option, it is most certainly not the best because of its transaction confirmation time. Dash, on the other hand thrives in fast transaction confirmation and is our choice for this project because of it’s applicability in a broad range of industrial use-cases concerning fast digital payments.  

Transactions enable users to send and receive payments: on the Dash blockchain the cryptocurrency is named Dash. A transaction has at least one input and one output. Each input spends the dash amount paid to previous output and each output then wait an Unspent Transaction Output (UTXO) until a later input spends it. Read more about the transactions on this link (https://dashcore.readme.io/docs/core-guidetransactions). Dash core transaction library at this link https://dashcore.readme.io/docs/core-reftransactions provides detailed description of attributes of the transaction.

Wallets: Blockchain wallets store and manage keys used to interact with the blockchain. Because transactions need a digital signature to spend an output, which requires knowledge of a private key, blockchain wallets are one of the most important applications used with a blockchain. The secure storage and management of keys is crucial for most transactions.

 

In this project, you will learn to write two types of transactions on the Dash blockchain network:  

•       Financial transactions that send money on the Dash blockchain from one user (wallet) to another.

•       Data transactions that write certain information on the Dash blockchain (publicly accessible).

This project is divided into two parts: In part 1, you will need to prepare one transaction that sends a certain amount of Dash cryptocurrency from sender to receiver wallet.

In part 2, you be using the smart contract from Project 1 to establish cross-chain communication [Hyperledger Fabric to Dash and vice-versa]. This part of the project is optional. For writing transactions of the project, you will receive a code base that needs to be updated on certain places so that the transaction is complete and recorded on the dash blockchain network.

Project 2: Part 1-Writing a financial transaction to send some Dash between two wallets 

TASK 1: Write a function to send some Dash from sender to receiver wallets
In the provided code base, sendMoney.js file contains the address of the sender and authentication token.   

Get the amount available with the sender by accessing the URL in the sendMoney.js. If the amount available with the sender is greater than or equal to the send amount given in the sendMoney.js create a transaction using dash core library and send the transaction using chainRider send raw transaction API (https://www.chainrider.io/docs/dash/#send-raw-transaction). Get the resulting transaction ID and submit it to the grading server.

More products