Show Menu
Cheatography

CORDANA (ADA) CSE1006 Cheat Sheet (DRAFT) by

Cardano ADA cryptocurrency is being discussed in this cheat sheet.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

LIST OF SOME POPULAR CRYPTO­CUR­RENCY

CARDANO (ADA)

Cardano is third genera­tion, proof-­of-­stake, decent­ralized platform for ADA crypto currency.
Cardano platform is written in Haskell functional progra­mming language.
Uses Ouroboros, a peer-r­evi­ewed, verifi­able, secure blockchain protocol.
Ouroboros enables the network's decent­ral­ization in Cardano.

Setting Up Cardano Node Using Docker

Download Cardano Image
docker image pull inputo­utp­ut/­car­dan­o-n­ode­:<T­AG>
Create local cardan­o-n­ode­-data and cardan­o-n­ode-ipc volumes:
docker volume create cardan­o-n­ode­-data
docker volume create cardan­o-n­ode-ipc
Run the Cardano Node
docker run -v cardan­o-n­ode­-ip­c:/ipc -v cardan­o-n­ode­-da­ta:­/data inputo­utp­ut/­car­dan­o-node run --help

Cardano Archit­ecture Overview

Cardano Archit­ecture Components : NODES

A blockchain system consists of a set of nodes distri­buted across a network that commun­icate with each other to achieve consensus about the system’s state.
Nodes are respon­sible for:

Executing the Ouroboros protocol
Validating and relaying blocks
Producing blocks (some nodes)
Providing inform­ation about the state of the blockchain to other local clients

Cardano Archit­ecture Components : DAEDALUS WALLET

Daedalus is a full node wallet that helps users to manage their ada, and can send and receive payments on the Cardano blockchain

Daedalus consists of a wallet frontend and a backend. The frontend is the graphical applic­ation that users see and interact with. The backend is a service process that monitors the state of the user’s wallet

CARDANO (ADA) TOKEN LIFECYCLE

CARDANO NETWORK

MINTING A NEW COIN

1. Download the node config files

wget https://hydra.iohk.io/build/5266641/download/1/cardano-node-1.24.2-linux.tar.gz
tar xzvf cardano-node-1.24.2-linux.tar.gz
mkdir lpconfig && cd lpconfig
wget https://hydra.iohk.io/build/5102327/download/1/launchpad-config.json
wget https://hydra.iohk.io/build/5102327/download/1/launchpad-byron-genesis.json
wget https://hydra.iohk.io/build/5102327/download/1/launchpad-shelley-genesis.json
wget https://hydra.iohk.io/build/5102327/download/1/launchpad-topology.json
cd .. 

2. Run the Cardano Node

./cardano-node run --topology ./lpconfig/launchpad-topology.json --database-path ./state-lp --port 3001
--config ./lpconfig/launchpad-config.json --socket-path ~/cardano-lp.socket

export CARDANO_NODE_SOCKET_PATH=~/cardano-lp.socket

3. Generate a verification key and a signing key:

cardano-cli address key-gen \
    --verification-key-file pay.vkey \
    --signing-key-file pay.skey

4. Generate the payment address:

./cardano-cli address build \
--payment-verification-key-file pay.vkey \
--out-file pay.addr \
--testnet-magic 3

5. Check the balance of the payment address:

./cardano-cli query utxo --address addr_test1vqvlku0ytscqg32rpv660uu4sgxlje25s5xrpz7zjqsva3c8pfckz --testnet-magic 3 --mary-era

6. Fund the address and check again:

./cardano-cli query utxo --address addr_test1vqvlku0ytscqg32rpv660uu4sgxlje25s5xrpz7zjqsva3c8pfckz --testnet-magic 3 --mary-era

7. Export the protocol parameters to a file for later use:

cardano-cli  query protocol-parameters \
--mainnet \
--out-file protocol.json