Categories
Blockchain Entrepreneurship Finance Financial Services Other Supply Chain Technology

How to leverage distributed ledger technology in corporate platforms

In the modern-day digital landscape, consortia and corporate platforms face numerous challenges. These include managing complexity, enhancing collaboration, and improving transparency. This article focuses on addressing them using distributed ledger technology (DLT). Power relations, coopetition within consortia, data security, and privacy in decentralized architectures will be the topic of examination.

How to leverage distributed ledger technology in corporate platforms and consortia

Table of contents:

  1. Modern-day application of blockchain
  2. How blockchain can address challenges faced by consortia
  3. Interactions in corporate platforms – a four-phase trajectory
  4. Conditions for a Successful distributed ledger technology Project
  5. Things can go wrong with blockchain
  6. Our distributed ledger technology business case: HLB Global
  7. About this article
  8. About Agnieszka Hołownia-Niedzielska

Modern-day application of blockchain

Distributed Ledger Technology has wide uses. Sectors like settlements and supply chain management continue to leverage it. Logistics use blockchain to track production and delivery processes, prevent food fraud, and verify product origin. It also helps verify transportation conditions, validate expiry dates, and confirm eco-certificates.

How blockchain can address challenges faced by consortia

Operating across companies requires considerations around cost division, compromising needs, and managing relationships without a chain of command. Despite many unknowns that characterize building and organizing consortia, the business case that stakeholders want to work on remains the same. They will be looking for similar benefits. That’s why creating a list of benefits and presenting them to internal stakeholders is important. This shift could have significant implications for all workers. It can lead to increased automation, greater independence from a central unit, and higher accountability. With a more process-oriented approach, organizations can expect better-structured processes, but also better data quality. This could lead to less confusion and more organized cross-company systems.

Ecosystems based on DLT, blockchain, or other decentralized architectures are maturing. More companies now look beyond innovation and publicity. Instead, they focus on tangible business cases. Use cases of these consortia are likely to impact workers not directly involved in software development and tech, such as those in accounting and settlements. By automating repetitive tasks, these technologies allow specialists to focus on expert tasks, reducing mistakes and streamlining processes.

The power within blockchain consortia is distributed differently from that of large centralized platform providers. Blockchain implementation operates independently of the organizational or legal framework. However, its decentralized nature means that each participant owns a full copy of the data, rather than a single central unit that has to be monitored or widely trusted.

Interactions in corporate platforms – a four-phase trajectory

The interaction between various companies involved in such platform projects always has specific characteristics, but it could be streamlined into a four-phase course.

The first phase involves innovators, often CIOs driven by personal interest, who identify a persistent problem. It could be resolved by standardizing the process across companies with blockchain technology.

Later, the initiating company experiencing the issue reaches out to interested parties in other business units. This usually happens after many companies have dealt with the same problem for years.

In the third phase of the process, business owners from one or more companies work together. Occasionally, the tech and legal departments also get involved. Usually, the ones in control of the project consult internally with multiple stakeholders. They then work on a solution acceptable to all businesses.

Finally, the proposed solution is built into a Minimum Viable Product (MVP) or Proof of Concept (PoC) version. It’s then beta-tested, feedback is collected, and the solution gains momentum. Some companies might wish to join only as participants, while the majority prefers to join as nodes to own their copy of data.

Conditions for a Successful distributed ledger technology Project

Maintaining relationships within DLT consortia requires some vital work. Mainly, it’s a key to managing tasks well and organizing things, keeping people on different levels informed. Those managing consortia projects need to consider differences between participants and the number of departments and workers engaged. It’s crucial to understand that processes and roles may differ. As a consequence, the people engaged in the project may change. Depending on the consortium’s participants, the structure of the internal process can also vary.  

Also, although blockchain communication is secure, establishing connections between nodes built in different organizations requires careful consideration of IT policies. Some of them may need adjustments. The team may modify the project’s technical side according to needs. In an ideal scenario, all participants have their node, transforming IT solution consumers into “vendors”.

Gathering feedback regularly is also a success factor. Feedback from early adopters – a group of pilot companies – plays a vital role, especially during usability tests. What’s important to note is that this work isn’t done when the first version of the solution is in operation. Collecting lessons learned after the MVP phase is a method to implement agile adjustments successfully. 

Interested in validating your blockchain project idea? Check out our article:
6 Easy Steps to Verify a Blockchain Project

Things can go wrong with blockchain

However, not all blockchain projects succeed. Some fail because they don’t grow big enough, so they don’t get their momentum. Some people treat consortia projects as internal, resulting in a lack of external communication and adaptability. This creates a restrictive ‘our way is the only way’ mentality. Moreover, implementing change always presents a challenge.

Despite some disappointments, distributed ledger technology consortia and structures keep offering benefits. This could be savings, or utility (paying more but gaining a single, independent source of truth). Developers build these structures in an agile manner, adding new participants and features, and planning for the next steps in the decentralization process. The key is to ensure that end-users actively use these projects; they don’t remain just as ideas hidden in a drawer.

Our distributed ledger technology business case: HLB Global

It’s time to analyze a real-world application, a case study of HLB Global. HLB is a global network of independent advisory and accounting firms. They have independent branches across 157 countries with more than 38 000 professionals, combining local expertise and global capabilities.

Espeo Software created a decentralized system to let members interact with each other more easily. HLB wanted to standardize and clarify its referral processes. They wanted everyone to play by the same rules enforced by the system. With the ability to add new referrals in place via the existing SharePoint interface, it’s now easier for everyone to manage their tasks. To track deal statuses, data is gathered from various sources like project orders, invoices, and payments. We had to build trust into the solution.

We used Hyperledger Fabric, a private blockchain network, as the solution. Users within this network operate in a transparent and secure environment. The system tracks and permanently records every action, ensuring it’s tamper-proof. The permissioned nature of HLF allows only authorized participants to gain access, maintaining the integrity and confidentiality of the blockchain network.

The HLF blockchain network now stores the data. It serves as the one source of truth with immutable data history. We also automated status changes that follow the execution of chain code tasks.

About this article

Espeo Software’s Solutions Consultant, Agnieszka Hołownia-Niedzielska, was invited by Prof. Dr. Ulrich Klüh to share her expertise on a Coopetition in Corporate Platforms project. The Darmstadt Business School conducts the research project, with funding from the Hans Böckler Foundation.

About Agnieszka Hołownia-Niedzielska:

Agnieszka Hołownia-Niedzielska is a Senior Solutions Consultant at Espeo Software. She has over a decade of experience in FinTech and RegTech product development and project management. Having been a business owner herself, she brings unique insights into business and technical analysis across various project sizes. She acquired Blockchain for Business Professional certification.

Categories
Blockchain Financial Services Newsroom Supply Chain

Darmstadt Business School Interviews Espeo DLT Expert

Consortia and corporate platforms face numerous challenges, including managing complexity, enhancing collaboration, and improving transparency. Espeo Software is pleased to announce that its Solutions Consultant, Agnieszka Hołownia-Niedzielska, to contribute her expertise in a research project on Coopetition in Corporate Platforms. The Darmstadt Business School, under the leadership of Prof. Dr. Ulrich Klüh, conducts the study and he also handles the interview. The project, funded by the Hans Böckler Foundation, explores the challenges and solutions of consortia and corporate platforms.

Hołownia-Niedzielska’s interview focuses on how Distributed Ledger Technology (DLT) can help address the challenges consortia and corporate platforms face. She analyzes various aspects and implications of decentralized architectures.

“It’s crucial to emphasize that DLT continues to mature and is no longer merely an innovation. Companies are starting to realize the tangible business benefits it provides,” says Hołownia-Niedzielska. 

According to Hołownia-Niedzielska, success in DLT projects starts with problem identification. This is followed by the second phase, where the needs of interested parties are gathered. The third phase involves collaborative work across companies to create solutions. Lastly, a Minimum Viable Product (MVP) or a Proof of Concept (PoC) is developed. An article with the entire interview is now available as a blog post on our website. 

Be the first to read the article – now on our blog:
How to leverage distributed ledger technology in corporate platforms

Espeo Software demonstrates the tangible benefits of DLT through its successful case study with HLB Global, a network of advisory and accounting firms spanning 157 countries. We developed a decentralized system using the Hyperledger Fabric private blockchain network to enhance transparency in HLB’s referral processes. This solution allows all members to interact seamlessly, with built-in trust and accurate tracking for every action, making the network tamper-proof.

We thank Prof. Dr Ulrich Klüh and Darmstadt Business School for recognizing our expertise in the field of DLT. This technology can become essential to how consortia and corporate platforms operate. DLT can lead to streamlined processes and better data quality by offering security and accountability. 

About Agnieszka Hołownia-Niedzielska:

Agnieszka Hołownia-Niedzielska is a Senior Solutions Consultant at Espeo Software. She has over a decade of experience in FinTech and RegTech product development and project management. Having been a business owner herself, she brings unique insights into business and technical analysis across various project sizes. She acquired Blockchain for Business Professional certification.

About Espeo Software:

Espeo Software has been helping companies develop and implement innovative fintech solutions since 2008. By leveraging our expertise in blockchain, online payments, and other related areas, our clients can invent and create cutting-edge solutions and services that help them stay at the forefront of innovation. 

Categories
Blockchain Entrepreneurship Other

Do you need a blockchain project? Six easy steps to verify it

You may be fascinated by blockchain technology, hearing about all those ground-breaking projects, and thinking about bringing it to your organization.

But some questions should pile up:

  • What is the right case to start the blockchain project?
  • Will it work for my organization?
  • Will the blockchain network work as a part of my product?

If you have worked in the business for some years, you probably know there are rarely simple yes or no answers to the questions. Having said that, if the idea is: let’s take any relational database and change it into a blockchain network, the response in 99,9% of cases is: “no”.

Let’s take together six steps to assess six aspects that help indicate if the organization is ready for the blockchain project.

Here are the steps:

  1. Consortium
  2. Company organizational complexity
  3. Database vs blockchain
  4. Trendsetter or follower
  5. One source of truth
  6. If… then…

And then as a bonus topic, we will mention the easiest way to decide between a public and a private network.

Blockchain supports consortia

A consortium is a way for businesses to join forces and reach goals they can not reach by themselves. In a consortium, trust needs to be gained, so it’s beneficial when the technology guarantees transparency and follows the rules. A distributed ledger is a way to achieve that. 

What is essential, in consortium there is no typical hierarchy, and, thanks to blockchain, equality is also maintained on the data level. Each participant has the same rights to read and write information and has the right to monitor the actions of other participants – blockchain nodes are equal, and the data history is transparent.

There are situations where not all data should be shared between all participants. Selected groups within the consortium may exchange data only between them. It is also one of the enterprise-friendly features of the Hyperledger Fabric network.

Handle complexity with blockchain

Complex technical and organizational structures are complicated and sometimes almost impossible to unify. There is no need for that with blockchain. Blockchain network nodes operate in local environments, while data consistency and immutability are ensured globally. 

That is often the case for enterprise companies, which have 100+  branches worldwide and face troubles with managing internal processes engaging many departments.

This complexity of structure and independence of branches may be a way to obtain local auditability and accountability. Each of the separate organizational units follows local compliance standards and is responsible for its data. In the case the database is centralized there is a unit being the global data owner, and that can result in an additional organizational burden and an increased risk factor.

Blockchain or database is a go-to solution depending on the business case 

Answering “yes” to the following questions is a good indicator to start using blockchain:

  1. Are data integrity and a tamper-proof solution crucial for the project?
  2. Does each member need their own copy of the data?
  3. Does every reader and writer require a transparent and easily accessible data history?
  4. Should data be processed automatically according to agreement terms enforced independently?

The “yes” answers you gave specify features that get many blockchain projects going.

Positive answering to the following questions is a good indicator that the centralized database should be used:

  1. Is a single entity responsible for the data, and is it controlling dataflow?
  2. Are data performance and data search the core of the system?
  3. Does each participant exchange data only with the central party?
  4. Do large quantities of graphics, movies, and other non-transactional data need to be stored?

Notice that question 4 is tricky. The answer may be yes for the tokenization process, and you still use blockchain with the support of IPFS technology, for instance.

Generally, if you said yes to some questions from the second section, analyze all other aspects presented in the article to decide if blockchain or other technology is what your project needs.

Blockchain is used by trendsetters and followers

For trendsetters, a blockchain project is a way to differentiate themselves and be one step ahead of competitors – enterprise blockchain with a mature ecosystem is a great way to be bold and to get momentum before others in the industry. Blockchain technology brings value by, to mention a few, work automation, reducing intermediaries, and providing transparency. This is why being the first to start a DLT project is not about getting good publicity, but it doesn’t hurt.

Followers are the companies that implement what others in the industry tested and succeeded in. Even if the company is very cautious toward new trends, it is still aware of the need to follow modern technological trends. There are multiple blockchain projects in various industries, and understanding use cases in yours is a way to get battle-tested blockchain benefits for your use.

Undisputable data state gives blockchain network an upper hand

Dealing with multiple data sources from numerous stakeholders is a common issue – blockchain creates one immutable and trusted source of information for everyone, removing the need for a third-party intermediary. 

In other words, a blockchain network is suitable for systems with no obvious authority or hierarchy between parties. However, there is a demand for one reliable source of information. Without clear authority, errors and omissions are hard to track, and establishing responsibility for updating data can be tricky. Blockchain creates a transparent ledger of all changes, hence data can not be altered or added arbitrarily without other parties knowing. If there is a need for the update it is clear who should be the one to add the new version. There is also no way to hide the time and date of the change.

Blockchain provides process execution in the data storage

Blockchain stores data, but it is also programmable, so to simplify: where there are if… then… rules, the chaincode (blockchain program) may deal with them. Smart contracts (blockchain-run programs) are as transparent as the network so that all participants can audit them.

Another significant change is that rules and agreements can be automatically executed and enforced. Agreements always have a risk level, and sides accept the risks or look for intermediaries to grant rules enforcement – blockchain smart contracts mitigate the risk due to the rules execution by independent technology.

Bonus: which network to choose

There is a big chance that having started to read about blockchain use cases and analyzing if that is something your organization is ready to work with, you heard about public and private blockchains. And regarding this aspect, I would risk a statement that you are in one of the three groups:

  1. That seems clear, there are some advantages of my preferred kind of network and I need to dig into it
  2. I know for sure which blockchain type is suitable for me
  3. No, not yet another thing to discover

If you are in the third group, look below, it can be that simple. If you are in groups 1 or 2, you may do that just to double-check.

First, a good blockchain company won’t let you choose the wrong kind of network; their reliability and business relationship are at stake.

Secondly, private blockchain networks, like Hyperledger Fabric, are a go-to solution for enterprise blockchain projects. They are built with corporate policies and internal regulations in mind. Moreover, when corporate data require secure storage within the organization – private permissioned blockchains are prepared for that. They identify and accept each network member before sharing the data.

Do you know if you are ready for the blockchain project?

Analyzing aspects of the use case against readiness for the blockchain project isn’t a simple task, but there is a group of indicators if the blockchain can bring value to your idea. I presented 6 of them with descriptions. I hope they helped you assess the general blockchain or non-blockchain direction. 

Feel free to contact Espeo Blockchain to discuss your specific case. You can also dig deeper into the topic with our other blog posts:

  1. Blockchains versus databases — What’s the difference?
  2. Pros and cons of blockchain: Do I even need one?
  3. 8 no-nonsense use cases based on Hyperledger Fabric blockchain

This article was written by our Solutions Consultant Agnieszka Hołownia-Niedzielska.

Categories
Blockchain Financial Services Software

How to build and deploy NFT Marketplace – a step-by-step guide

An NFT marketplace is an online platform based on blockchain that allows for selling and buying non-fungible tokens (NFT-s). This article will show you how to build and deploy the NFT marketplace from scratch on Polygon. Matic Polygon enables the building of the same applications, consistent with the same standards as Ethereum standards, with the added benefits of lower gas costs and faster transaction speed, among other things.

In the following chapters, we will show you how to build a full-stack application using technologies such as React.js as a front-end framework, Hardhat as a Solidity development environment, IPFS for File Storage, and Web3-React for Polygon Web Client. We have described them briefly below.

Polygon – Polygon is a decentralized Ethereum scaling platform designated to be used for building scalable, user-friendly dApps with low transaction fees. It is compliant with multiple Ethereum security and token standards. The platform offers ready-to-use tools to scale, secure, or build networks.

Metamask – MetaMask is a mature, popular and reliable software cryptocurrency wallet that interacts with the Ethereum blockchain. It allows users to manage their crypto assets through a browser extension or mobile app, which can then be used to interact with decentralized applications. The wallet enables adding multiple EVM network tokens.

React – JavaScript library for rapid development of reactive frontend applications. Mature solution with a growing list of frameworks to build web apps.

Hardhat – Ethereum development environment for creating, testing, and debugging code in Solidity. Flexible and popular in multiple mature project solutions for developers.

IPFS – It is a protocol and peer-to-peer network for distributed storing and sharing files. One of the main IPFS features is content-addressing to uniquely identify each file in a global namespace that connects all devices in the network.

Marketplace smart contract 

The central part of the application is the marketplace smart contract “NFTMarketplace” with data storage, core functions, and query functions.

Core functions:

function createMarketItem(address nftContract,uint256 tokenId,uint256 price) payable
function deleteMarketItem(uint256 itemId) public
function createMarketSale(address nftContract,uint256 id) public payable

Query functions:

function fetchActiveItems() public view returns (MarketItem[] memory)
function fetchMyPurchasedItems() public view returns (MarketItem[] memory)
function fetchMyCreatedItems() public view returns (MarketItem[] memory) 

A seller can use the smart contract to:

  • approve an NFT to market contract
  • create a market item with a listing fee
  • waiting for a buyer to buy the NFT
  • receive the price value

When a buyer buys an NFT in the marketplace, the market contract processes the purchase process:

  • buyer buys by paying the price value
  • market contract completes the purchase process:
    • transfer the price value to the seller
    • transfer the NFT from seller to buyer
    • transfer the listing fee to the market owner
    • change market item state from Created to Release

NFT marketplace smart contract coding

Let’s elaborate on each step with code samples.

Storing data in IPFS 

But first of all, let’s create our NFT and store its data on IPFS. IPFS is a peer-to-peer hypermedia protocol designed to preserve and grow humanity’s knowledge by making the web upgradeable, resilient, and more open.

To upload our file to IPFS, let’s use two functions for the front-end side.

The first is uploading an image to the store, and the second uploads metadata with a newly created link to this image.

UploadToIPFS function returns url which then we set into NFT ERC721 smart contract.

Minting NFT

We have to create an NFT ERC721 smart contract inheriting OpenZeppelin’s ERC721 implementation. We add such functionality here:

  • auto-increment token id 
  • safeMint(to, tokenId) everyone can mint
  • _setTokenURI(tokenId, uri) to set up IPFS URI for our NFT metadata object

We also add a deploy script scripts/deploy.ts to deploy the smartcontract with name: NFToken and symbol: ERC721

As well as automatically verify the contract script:

As a result, we have just created NFT ERC721 smart contract, deployed it, verified and we can use it to mint multiple NFTs with metadata stored on IPFS.

As blockchain functions, require a time- and resource-consuming mining process of verifying and validating blockchain transactions some time should be gone before we can use our NFT. ERC721 token under the hood emits events we can subscribe for. Let’s subscribe to the Transfer event on our application’s front-end part to get know exactly when/if the transfer or creation of NFT is completed:

And approve this NFT right here to use it by NFTMarketplace smart contract:

NFT marketplace smart contract’s structure

We define a structure for MarketItem:

Every market item can be one of three states:

All items are stored in a mapping:

The market has an owner which is the contract deployer. The listing fee will be going to the market owner when an NFT item is sold in the market.

The first thing to do is to list market items for sale by calling createMarketItem function providing a fixed price for it:

Create MarketItem function also checks whether the price is greater than zero and NFT is approved by the owner of the market. In the end, it emits a creation event to the front-end where we could catch this event for different purposes.

The responsible function for buying is createMarketSale which apart from selling logic checks whether buying price is equal selling price and emits a selling event to the front-end.

An important part of the application is setting up a market owner fee as well as transferring marketplace ownership:

Web3 app setup

Set up web app project using Web3-React & Chakra UI

  • React
  • Next.js
  • Chakra UI
  • Web3-React
  • ethers.js
  • SWR

Crypto wallet configuration

Prepare your MetaMask

Make sure your MetaMask has the RPC URL https://rpc-mumbai.matic.today/ and chain id 80001 for Mumbai Polygon testnet.

In webapp/ folder, run the command from the terminal:

We will use the web3 connecting framework Web3-React to get our job done. The web app stack is:

On the browser, go to page: http://localhost:3000/ where our webpage is running in the local environment and try its functionality.

Summary – Marketplace ready to operate

As a result, we have created a starting point for a customizable alternative to ready-to-use solutions like OpenSea. Notice that we have created not only smartcontract predestined for buying and selling that is crucial for the marketplace. We also made NFTs, so if a collection of NFTs is all you need, use only the smartcontract to mint and get those NFT-s into your wallet.

If there was anything that surprised you as the reader in the process we have described, please feel free to get in touch with us.

This article was written by Blockchain Developer Roman Foltyn. Click HERE for a source code