Posts

Showing posts matching the search for blockchain

Featured Post

SQL Interview Success: Unlocking the Top 5 Frequently Asked Queries

Image
 Here are the five top commonly asked SQL queries in the interviews. These you can expect in Data Analyst, or, Data Engineer interviews. Top SQL Queries for Interviews 01. Joins The commonly asked question pertains to providing two tables, determining the number of rows that will return on various join types, and the resultant. Table1 -------- id ---- 1 1 2 3 Table2 -------- id ---- 1 3 1 NULL Output ------- Inner join --------------- 5 rows will return The result will be: =============== 1  1 1   1 1   1 1    1 3    3 02. Substring and Concat Here, we need to write an SQL query to make the upper case of the first letter and the small case of the remaining letter. Table1 ------ ename ===== raJu venKat kRIshna Solution: ========== SELECT CONCAT(UPPER(SUBSTRING(name, 1, 1)), LOWER(SUBSTRING(name, 2))) AS capitalized_name FROM Table1; 03. Case statement SQL Query ========= SELECT Code1, Code2,      CASE         WHEN Code1 = 'A' AND Code2 = 'AA' THEN "A" | "A

The Essential Guide to Blockchain Terminology

Image
Bitcoin was the first project developed by using blockchain. My post is to share Blockchain keywords by using an example of Bitcoin. Let us ready... Blockchain is new technology. Understanding its principles makes you helpful to apply in your projects.  Initially, the purpose of  Blockchain development was to carry mining. In general, mining means search and find value. Usually, mining processes are two types. Those are data mining and bitcoin mining . Blockchain Glossary Blockchain - only blocks involved. The data which was finalized stored in blocks. Bitcoin Ledger - It is a public ledger Ledger or Blockchain - The chain of blocks Functions of Blockchain - It validates each transaction, Keeps track, and verifies ownership Double Spending- It prevents duplicating the Cryptocurrency for using next time. Consensus mechanism - It is also called PoW (proof of work). This mechanism avoids double-spending Group of Transactions - When a new group of transactions created, t

How to use Blockchain on Cloud

Image
Blockchain applications are growing in the financial world. Security is the main motto behind blockchain applications. You cannot tamper a record once created. What is a platform   A platform is a place where you can develop applications. Top Blockchain Cloud Platforms The development needs to create a project and deploy it into production. So that the real use can feel by users at their end. Ok... Let us come to three popular cloud platforms that are highly used in Blockchain applications: HyperLedger IBM BlueMix Microsoft Azure #1. HyperLedger The Hyperledger project is led by Executive Director Brian Behlendorf, who has decades of experience dating back to the original Linux Foundation and Apache Foundation, as well as being a CTO of the World Economic Forum. So it's not surprising that Hyperledger has been well received. You can learn hyper Ledger here. Many of the top business and industry leaders have joined the project, including Accenture, Cisco, Fujitsu

What is Block-linking in Blockchain - Quick Tutorial

Image
Satoshi Nakamoto created the first Blockchain project wished Bitcoin to be secure, anonymous and could work with no centralized intermediary. To achieve that, Nakamoto combined public-key cryptography, a distributed ledger, and a consensus algorithm. History of Blockchain  Nakamoto combined public-key cryptography, a distributed ledger, and a consensus algorithm. The groundwork for each component was painfully laid by people before him, such as Wei Dai, Nick Szabo, Hal Finney, and Adam Back. The Blockchain can sometimes refer to the combination of all three components or just the distributed ledger. Blockchain ideas As the name aptly describes, at the heart of the Blockchain there is a chain of blocks, each block containing read-only data that represents monetary transactions. Every time a new block is written, you need to reference the block that immediately precedes it – so, at any given point, you can track down the chain up to the very first block created. How blockchain des

10 Blockchain Smart Contract Interview Questions

Image
Here are the  top ten interview questions  on Blockchain smart contracts. Here you will know about smart-contract, what language and IDE you need to develop. Useful for interviews as well. 1. What is a Smart Contract? A  smart contract  is an executable code on the blockchain intended to digitally facilitate, verify, validate, and enforce the rules and regulations of an application. Smart contracts allow the performance of credible transactions without third parties . These transactions are trackable and irreversible. 2. Where the smart Contract code resides? The smart contract is deployed in a sandbox environment and identified by a 160-bit account address like any other participants on the blockchain network. It executes on the virtual machine (VM) on the blockchain node and is identified by an account number. 3. Smart Contract is it API? Yes, it is like a class. It has methods. These are useful to process transactions in the Blockchain framework. 4. What are the six functions of Sm

KYC: Top BlockChain Application Read Today

Image
SBI is now pressing ahead with its first implementation of the decentralized technology by using an enterprise blockchain solution for managing its Know Your Customer (KYC) system, via a new partnership with Intel that sees the technology giant become the consortium’s official technology advisor. What is KYC Know your customer means all banks update information about their customers. Customer details are Phone number, Aadhar Card, PAN, Home Address, etc. These details are mandatory to update once in six months. Blockchain Platform to Use in KYC is Hyperledger Sawtooth The enterprise blockchain will run on Hyperledger Sawtooth, a modular platform for developing and deploying blockchains, developed by Intel – a member of the open-source Linux Foundation-led Hyperledger project. The blockchain will also be supplemented by Intel Software Guard Extensions (SGX) to boost the blockchain’s privacy, security, and scalability. The blockchain solution will be delivered by Primechain, an Indian bl

Blockchain Technology: 11 Exclusive Benefits

Image
Here are the benefits of blockchain technology. Less maintenance and its distributable nature made the blockchain technology hot in the market.     The applications that used blockchain technology Viz: Banks, Share markets, Government Bodies, and Big Corporations.  What is Blockchain Blockchain stores each transaction in Blocks. No one can tamper or change the details. The people who are making a transaction in the Blockchain world both have the same copies. he parties involved cannot changes these records. So it is robust. Advantages of distributed ledger technology (Blockchain) The distributed nature of ledger details. Distributed data available to all parties, and cannot tamper the data. Every transaction is Public. That means only people who have access can see the information. It stores all records permanently. One cannot edit or manipulate the data. Data-hacking is not possible since it is distributed. Unlike centralized processing, the Blockchain is much faster. And verification

Hyperledger Fabric: 20 Real Interview Questions

Image
Hyperledger is one of the top-listed blockchains. This architecture follows R3 Corda specifications. Sharing the interview questions with you that I have prepared for my interview. Though Ethereum leads in real-time applications. The latest Hyperledger version is now ready for production applications. It has now become stable for production applications. The Hyperledger is now backed by IBM. But, it is still an open source. These interview questions help you to read quickly. The below set of interview questions helps you like a tutorial on Hyperledger fabric. Hyperledger Fabric Interview Questions 1). What are Nodes? In Hyperledger the communication entities are called Nodes. 2). What are the three different types of Nodes? - Client Node - Peer Node - Order Node The Client node initiates transactions. The peer node commits the transaction. The order node guarantees delivery. 3). What is Channel? A channel in Hyperledger is the subnet of the main blockchain. You can ha

Blockchain Smart Contract The Perfect Example

Image
The smart contract in Blockchain is a software application that works without human intervention. Here I have shared the Smart Contract backend process. Smart Contract Mechanism. 1. What is Smart Contract A smart contract is a protocol that can auto-execute, facilitate, verify, or enforce the negotiation of a contract. Agreement between two parties you can say as a contract. Incorporating the rules of the physical contract into the computing world, you can say as a smart contract Blockchain supports you to create smart contracts. Smart Contracts are self-executing programs that run on the blockchain and are capable of enforcing rules Using Blockchain as a platform and making an agreement or contract between more than two parties, you can say as Smart Contract. 2. Traditional Markets  3. Top Benefits of Smart Contract Currently, smart contracts are being used only in Crypto Currencies Now Smart Contracts being used in all financial transactions A smart contract ca

How to Use Blockchain in Internet of Things and Real Applications

Image
You do not need a central authority in the blockchain. The distributed nature of records makes the records visible to all the parties. Encrypted blocks link to each other. You cannot manipulate the stored records in the blockchain.   Why the peer-to-peer network and the absence of a central authority Peer to peer network makes secure and transparent transactions. The data in the blocks are encrypted. The distributed nature is the main reason for not having central authority in the blockchain. Blockchain in IoT There are already blockchain applications in the context of the Internet of Things and some vendors have specific solutions to enable the use of blockchain for IoT too, among others increase trust, save costs and speed up transactions.  IBM is a frontrunner , although several vendors and industry initiatives have been launched with new solutions and actual deployments. References Top Blog on Blockchain Technology Trends

4 Must read Blockchain Disadvantages for Consumers

Image
Here are the disadvantages of Blockchain. Below, you will find the list of these. Blockchain Disadvantages Lack of privacy Loss of personal responsibility Loss of jobs Reintermediation 1. Lack of Privacy Public blockchains do not hide any of their data. Instead, everyone can read the complete history of transactions. This level of transparency is frightening for those who want to protect their privacy. These concerns are understandable when considering the level at which personal data are already collected and utilized by large corporations or intelligence agencies. 2. Loss of Responsibility Loss of personal responsibility is often considered a consequence of disintermediation. Intermediaries not only bring different parties of a contract together but may also provide guarantees. They offer reconciliation in cases when transactions do not work out as intended, and they are also obliged to take responsibility for their actions. The shift from trust in people and human organizations to

10 Top Blockchain Advantages for Finance Projects

Image
In the business world, the transactions are — orders, payments, account tracking and much more. Often, each participant has his or her own ledger — and, thus, a version of the truth that may differ from other participants. Top Blockchain Features   You can avoid fraud... These multiple ledgers can be a recipe for error, fraud, and inefficiency. But because members on a blockchain share a common view of the truth, it’s now possible to see all details of a transaction end-to-end, reducing those vulnerabilities . Ordinary ledger Vs Shared Ledger Each participant has his own, separate ledger — increasing the possibility of human error or fraud. Reliance on intermediaries for validation creates inefficiencies. Can become a paper-laden process, resulting in frequent delays and potential losses for all stakeholders. How to Avoid the Complexity Single, shared, tamper-evident ledger — once recorded, transactions cannot be altered. All parties must give consensus before a new transactio

The In-and-Out of Nodes in Blockchain

Image
Blockchain is a decentralized technology or distributed ledger on which transactions are anonymously recorded. Which means the transaction ledger is maintained simultaneously across a network of unrelated computers or servers called “nodes”, like a spreadsheet that is duplicated thousands of times across a network of computers. The ledger contains a continuous and complete record (the “chain”) of all transactions performed which are grouped into blocks A block is only added to the chain if the nodes, which are members in the blockchain network with high levels of computing power, reach consensus on the next ‘valid’ block to be added to the chain. A transaction can only be verified and form part of a candidate block if all the nodes on the network confirm that the transaction is valid. Related 11 Useful Blockchain Advantages to Read now Blockchain Smart Contract The Perfect Example

6 Top Solidity Interview Questions

Image
Solidity is the prime language to write the logic for smart contracts in the Ethereum blockchain. These are selected interview questions refresh before you take an interview. Solidity Interview Questions on Solidity 1. What is Solidity? A) Solidity is the main language that you can use to write programs in Blockchain, such as smart contracts. 2. Where the Solidity programs run in Ethereum? A). Those will run in EVM. You can also call it an Ethereum Virtual Machine. 3. What kind of logic a Smart Contract can contain? A contract in the sense of Solidity is a collection of code (its functions) and data (its state) that resides at a specific address on the Ethereum blockchain 4). Can the source code of smart contracts accessible to the outside world?  A). No, it is not possible to access the source code to the network. Also, there is limited access to one smart contract logic to the other smart contract logic. Eve, file systems, and other processes cannot access the source

Java in Digital Applications Real Usage

Image
Recently I found, some of my friends refreshing Java language skills. I asked them why. They told me many digital applications need proficiency in Java skill. Java is the top skill, and popular in customization of all the tools involved in digital applications.  From the above conversation, I can say that at least core Java everyone should be proficient. In addition to that, Java once upon a time popular as web development language. Since Java is being used in all modern applications.  Of course, there are many other popular languages. Those are Python and Scala.   Top List of  Java Applications Robotic process automation - Daily activities in any offices can be automated with Robotic process automation. Java is the language in this scenario to write backend scripts. Artificial Intelligence -Each AI application involves some sort of programming logic. Where it validates user input and sends back output. The backend logic often is written in Java. Full stack development

PL SQL: How to Fix Errors

Image
PL/SQL is procedural language, and the PL/SQL procedures you can call from any high-level language. This is depending on your project requirement. PL SQL  How to prevent some common errors or exceptions while writing PL/SQL procedures in your project. The number one and primary one is assigning variables non-numeric to numeric. This is one kind of area where you need to look in while writing PL/SQL procedure. PL/SQL is nothing but an invitation for trouble. They are all centered on data types and implicit conversion. What's implicit conversion? Let's say you have number held in a varchar2 data type variable, v_value. You try assigning n_value, a number data type variable, that value with the following line of code:n_value := v_value; That should work, right? Yes, it should, but when it doesn't, because you don't actually have a numeric literal stored in variable v_value, the implicit data type conversion will raise an "unexpected" exception in

How to Find Factorial in Python for Any Number

Image
I have explained how to find factorial for a given number in Python using my own script fact.fy. A module is created as a script file, which contains function definitions that can be called in two ways: From the interpreter From another script file or from another function How to import a Script from Linux to Python Console I have written a script  fact.fy # This program illustrates the designing/creation of a module def factorial (n): "This module computes factorial" f=1; for i in range (1, n+1): f=f*i; print(f) return   In interpreter... >>>  import fact        ==> Import from Linux >>> fact.factorial(5) 120 What is script reloading? The Python interpreter imports a module only once in a session.  If some modifications are performed in the script, then it must be reloaded (imported) again in the interpreter for future use. A script is a reusable component and you can add n number of