Reportover
Reportover
Chapter:-1
Introduction
The cryptocurrencies are nothing but the digital version of the other fiat currency in the
traditional financial market of the world. The first ever cryptocurrency was Bitcoin, and was
well known for its decentralization and security. However, the pillars of cryptocurrencies are
nothing but decentralization and the Consensus mechanisms. Cryptocurrencies were
prominently initiated by Satoshi Nakamoto, in order to eradicate the double spending
problems that the digital currencies persisted before the invention of Bitcoin in the form of a
cryptocurrency.
Basically, when the first record is written a specific key is generated for that record. The
interesting thing happens when the further records are written. When the sending record is
written the data and then let the first one goes to the second record and then comes out a
unique key. When the third record is written the data and key from the first and sending
record goes to the third record and then comes out a unique key. Hence as we can observe
that there is a dependency between the records. The records are kind of chained to each other.
Cryptocurrencies basically work on the Distributed Ledger Technology along with the
various Consensus mechanisms, the distributed ledger technology is nothing but a way of
storing the information but not in the traditional format, but information is stored in the form
of records and a bunch of records from a single block. These blocks of information are
constantly developed and new blocks are added at regular intervals. Security is incorporated
through distributed ledger in the Blockchain ecosystem where the whole Blockchain is
transparent to each and every participant of the network. Therefore, providing security to the
whole network as data tampering can be easily recognized with this process.
Along with the Distributed Ledger Technology, various Consensus mechanisms are
employed and invented by the researchers throughout the world. In any particular
organization where a huge group of people is working towards a single goal, it is absolutely
no doubt that there would be differences in the opinion when it comes to making decisions
regarding the development of the community. The consensus mechanism results in the
incorporation of some of the bestdecisions taken. The world's first cryptocurrency coin,
Bitcoin incorporated the Proof of Work consensus mechanism in order to validate the
transactions present onthe Bitcoin Blockchain.
The cryptocurrencies as the name suggests incorporates the Cryptographic principles and is
one of the main ingredients for the providing security to the whole blockchain network.
Precisely the whole information present on a particular block is exposed to a Cryptographic
hash function with the name SHA 256 and results in the generation of a new hash which is
then utilized by the second block to generate its own hashcode. In this particular way, the
block-chain is formed where due to time-stamping methodology, the transactions are
completely safe from access from other sources.
Chapter:-2
Literature Survey
Blockchain technology was first used in 2009, when Bitcoin was introduced, which was the
first to apply the concepts of Blockchain technology. As the words suggest, block-chain. The
blocks of data are chained together in a digital format. The block consists of records which in
turn consists of ledgers, where the transactions are written. In a Blockchain, the records are
distributed among the nodes and everyone has a copy of it. So when one of the records is
tampered or changed, it becomes very easy for us to recognize the tampered record. Which
can be replaced with the authentic one by copying it from others on the network.
With money pouring into the blockchain from investors, venture capitalists, and strategic
partners, it is clear that cryptocurrencies will continue to be in the spotlight for years to come.
However, as with any newly emerging field, being in the spotlight can present a double-
edged sword. It makes for an environment full of passionate and extremely technical
discussion, but it also opens the door to blatant promotional pump-and-dump schemes and
inflexible factions of cheerleaders or naysayers. This clutter makes it considerably difficult
for the average person to really wrap their head around the crypto space – and it creates
opportunities to simplify the sector in an easy, digestible, and accessible way.
In particular, the project has been made possible through the incorporation of Swings and
JDBC from JAVA programming language, in order to develop the front end. In case of the
Back end development, Oracle 10g Express Edition along with the concepts of SQL
programming are utilised in order to serve the requirements of the users . for the connection
of both the front end and the backend , knowledge about the various JDBC drivers was
gained through various resources.
The Relational Database Schema which includes the study of ER Diagram, Relational
Schema Diagram which indirectly provided a base to the implementation of our mini
project which is crytpocurrency management
Chapter:-3
System Requirements Specification
Chapter:-4
Design
4.1 ER Diagram
coinnum
cname
mcap relate 1
ico
1
price
tsupply crypto
sdate amount
fname M
hdate cpt_wt
N wcode
M 1
exname excode
uses wname wtype
N
M
M
exchange 1
ceo
uses M
cusname
4.2 Relational Schema Diagram balance No of coins
The relational schema refers to the organization of data as a blueprint of how the database is
constructed (divided into database tables in the case of relational databases). The formal
definition of a database schema is a set of formulas (sentences) called integrity constraints
imposed on a database.
CRYPTO
ICO
Coinnum start date duration amount
EXCHANGE
excode exname ceo country decentralised fee
CPT-EX
Coinnum excode
WALLET
wcode wname wtype
CPT-WT
Coinnum wcode
CUSTOMER
Chapter:-5
Implementation
Department Of CSE ,Dr.AIT Page 5
CRYPTOCURRENCY DATABASE MANAGEMENT
ICO TABLE
create table ico
(
coinnum references crypto,
startdate date,
duration int,
amount float
);
EXCHANGE TABLE
create table exchange
( excode int primary key,
exname varchar(1000),
ceo varchar(1000),
country varchar(200),
fee float,
decentralised varchar(5)
);
CPT_EX TABLE
create table cpt_ex
(
coinnum reference crypto
excode reference exchangetable
primary key (coinnum,excode)
);
WALLET TABLE
create table wallet
(
wcode int primary key,
wname varchar(200),
wtype varchar(200)
);
CPT_WT TABLE
create table cpt_wt
(
coinnum references crypto,
wcode references wallet,
primary key(coinnum,wcode)
);
CUSTOMER TABLE
create table customer
(
cid int primary key,
cusname varchar(2000),
excode references exchange,
wcode references wallet,
coinnum references crypto,
noofcoins float,
balance float
);
Chapter:-6
Snapshots
Department Of CSE ,Dr.AIT Page 10
CRYPTOCURRENCY DATABASE MANAGEMENT
6.1 Frontend UI
Insertion of coins
Insertion of Exchnage
Insertion of Wallet
Insertion of a Customer
Deletion of a coin
Deletion of an Exchange
Deletion of a Wallet
Deletion of a Customer
6.2 Backend
6.2.1Select Statements
6.2.2 Queries
1)Find the customer name who pays the maximum fee for exchange.
select cusname
from customer c,exchange e
where c.excode=e.excode and e.fee=(select max(fee) from exchange);
2)find the name and market capitalization of cryptocurrency which raised maximum amount
during its initial coin offering and is also supported by binance exchange
select cname,mcap
3) list the customer imformation who owns a coin who’s initial coin offering lasted for
prolonged duration.
select distinct(c.cid),c.cusname,c.noofcoins,c.balance
from customer c,crypto cy,ico i
4)list the imformation about the wallets which cand hold the coins which are inturn supported
by india based exchanges
5) Retreive the customer id, name and balance of people who use hardware wallets and
decentralised exchange.
intersect
6) list all the imformation about the exchange which supports ripple
7)Retreive all the coin information who’s crowd funding was initiatied after 2015.
8) List the exchnage info which supports both ‘Bitcoin’ and ‘Ethernum’.
intersect
9) list the exchange code,name,ceo and country supporting that coins whos total supply is
not more than 30 million
select distinct(e.excode),e.exname,e.ceo,e.country
from exchange e,cpt_ex ce,crypto c
where e.excode=ce.excode AND ce.coinnum IN (select coinnum
from crypto
where tsupply<= 30.0
);
10)Display the coin details which are used by customers ( which are in the descending order
of their balance).
CONCLUSION
Cryptocurrencies are bound to have a very strong future, but the question is to What extent
the cryptocurrencies will be under the control of the regulators in the future? On the other
side, the intervention of the government can also be profitable for the cryptocurrency market
as many people would start investing in it, assuming backup support from the government.
Also, such robust database would be an icing on the cake, as it enables the users to gain
insights regarding the current market condition of the mini world.
The problems, which existed in the earlier Centralised currency system, where the
governments would use the people’s money, without their concern, but with Cryptocurrencies
there is no room for such hasty decisions to be taken. This is because the people are in the
sole control of their funds. Even the government is looking out for a chance to eradicate the
Cryptocurrencies, as the people have stopped using the Fiat currencies provided by the
government.
Because cryptocurrencies require only an Internet connection, and are not dependent on
established institutions such as banks, they are ideally suited for societies without a well-
developed financial infrastructure .As with how many individuals emerging markets skipped
over landlines and went straight for mobile phones, the same individuals may skip the
overhead of the traditional banking system and engage directly in mobile banking. For these
reasons, we expect cryptocurrencies to become a major influence in emerging markets over
the next 3-5 years.
Within the cryptocurrency community, one of the most popularized goals is the total
replacement of banks and other centralized financial intermediaries. Although such
institutions may never be fully replaced by a democratized network, their role (and associated
profitability) may steadily diminish with rise of cryptocurrencies, hopefully leading to the
prevention of future financial catastrophes on the scale of the this crisis
Although cryptocurrencies have the possibility to replace functions of the existing financial
infrastructure, their greatest potential may be in incorporating with other technologies to
facilitate a true revolution. The blockchain model is ideally suited for Internet of Things (IoT)
transactions, which require both efficient simplicity and robust security. For example,
imagine if every time you needed to fill up a car with gas, your car could pay the gas station
automatically.
BIBILOGRAPHY
www.stackoverflow.com
www.w3schools.com
www.tutorialspoint.com
https://www.quora.com/