Skip to content

Commit

Permalink
Merge pull request #9 from Samir-Alam/frontend-issue
Browse files Browse the repository at this point in the history
Frontend issue #2
  • Loading branch information
Manish1Gupta authored Oct 7, 2023
2 parents 2ff862d + 6f38da5 commit 4a4192c
Show file tree
Hide file tree
Showing 8 changed files with 1,036 additions and 141 deletions.
46 changes: 46 additions & 0 deletions Blockchain/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
I can help you create a basic readme file containing some information about blockchain technology. Here is a possible content for the file:

# Blockchain Technology

Blockchain technology is a way of storing and transferring data in a distributed, decentralized, and immutable manner. Blockchain technology can be used to record transactions, track assets, and build trust among participants in a network.

## What is blockchain?

A blockchain is a type of distributed database or ledger that stores the record of ownership of digital assets. Any data stored on a blockchain is unable to be modified, making the technology a legitimate disruptor for industries like payments, cybersecurity and healthcare³.

A blockchain consists of a series of blocks that are linked together by cryptographic hashes. Each block contains a set of transactions or events that have been verified by the majority of the nodes in the network. A node is a computer that connects to the blockchain and participates in validating and propagating transactions.

A blockchain can be public or private, depending on who can access and update the data. A public blockchain, such as Bitcoin or Ethereum, is open to anyone and operates without a central authority. A private blockchain, such as Hyperledger or Corda, is restricted to a specific group of participants and requires permission to join and transact.

## How does blockchain work?

Blockchain works by following a set of rules or protocols that ensure the security and integrity of the data. The main components of blockchain are:

- Transactions: Transactions are the actions or events that occur on the blockchain, such as sending money, registering an asset, or executing a smart contract. Transactions are initiated by the users or applications that interact with the blockchain.
- Blocks: Blocks are the units of data that store the transactions on the blockchain. Each block has a unique identifier called a hash, which is derived from the data in the block and the hash of the previous block. This creates a chain of blocks that can be traced back to the genesis block, which is the first block ever created on the blockchain.
- Consensus: Consensus is the process of reaching agreement among the nodes on the validity and order of transactions on the blockchain. Different blockchains use different consensus mechanisms, such as proof-of-work, proof-of-stake, or Byzantine fault tolerance, to ensure that only valid transactions are added to the blockchain and that all nodes have the same view of the ledger.
- Smart contracts: Smart contracts are self-executing programs that run on the blockchain and enforce the rules and logic of a transaction. Smart contracts can define conditions for asset transfers, payments, escrow services, and more. Smart contracts are written in specific programming languages, such as Solidity for Ethereum or Go for Hyperledger Fabric.

## Why is blockchain important?

Blockchain is important because it offers several benefits over traditional systems of data management and exchange, such as:

- Transparency: Blockchain provides a shared and immutable ledger that records all transactions and events on the network. This enables all participants to have a single source of truth and to audit the data at any time.
- Security: Blockchain uses cryptography and consensus algorithms to ensure that only authorized parties can access and update the data. Blockchain also protects the data from tampering, hacking, or corruption by making it difficult or impossible to alter or delete any block in the chain.
- Efficiency: Blockchain eliminates the need for intermediaries or third parties to verify and process transactions. This reduces costs, delays, and errors in data exchange. Blockchain also enables faster and cheaper cross-border payments and remittances by using digital currencies or tokens.
- Innovation: Blockchain enables new business models and opportunities by creating digital representations of physical assets, such as land titles, certificates, or identity documents. Blockchain also supports decentralized applications (DApps) that run on peer-to-peer networks and offer various services, such as gaming, social media, or e-commerce.

## References

¹: https://www.ibm.com/topics/blockchain
²: https://www.geeksforgeeks.org/blockchain-technology-introduction/
³: https://builtin.com/blockchain
⁴: https://www.blockchain-council.org/blockchain/what-is-blockchain-technology-and-how-does-it-work/
⁵: https://www.mckinsey.com/featured-insights/mckinsey-explainers/what-is-blockchain

Source: Conversation with Bing, 3/10/2023
(1) What Is Blockchain Technology? How Does It Work? | Built In. https://builtin.com/blockchain.
(2) What is Blockchain Technology? - IBM Blockchain | IBM. https://www.ibm.com/topics/blockchain.
(3) Introduction to Blockchain technology | Set 1 - GeeksforGeeks. https://www.geeksforgeeks.org/blockchain-technology-introduction/.
(4) What is Blockchain Technology, and How Does It Work?. https://www.blockchain-council.org/blockchain/what-is-blockchain-technology-and-how-does-it-work/.
(5) What is blockchain? | McKinsey. https://www.mckinsey.com/featured-insights/mckinsey-explainers/what-is-blockchain.
24 changes: 24 additions & 0 deletions Blockchain/message.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// A simple contract that stores a message and allows anyone to read and update it

pragma solidity ^0.8.0;

contract Message {

// A state variable to store the message
string public message;

// A constructor to initialize the message
constructor(string memory _message) {
message = _message;
}

// A function to update the message
function updateMessage(string memory _message) public {
message = _message;
}

// A function to read the message
function readMessage() public view returns (string memory) {
return message;
}
}
Loading

0 comments on commit 4a4192c

Please sign in to comment.