Logo

dev-resources.site

for different kinds of informations.

Two Types of SmartContracts

Published at
8/16/2022
Categories
blockchain
web3
eth
smartcontract
Author
bias
Categories
4 categories in total
blockchain
open
web3
open
eth
open
smartcontract
open
Author
4 person written this
bias
open
Two Types of SmartContracts

For blockchain technologie and web3 it is today needed to use smartcontracts. today I want to discuss two greatly differences between smartcontracts.

  1. single process contract
  2. business rule contract

single pricess contracts:

On public blockchains such as eth one deployed smartcontract is meaned to represent one business process. they can be used to lock in some money(eth or a currency on that blockchain) and releqse it after some condition is met.

Single process contracts can also be used to reflect ownership of some property. To do so they store a reference to the propery(art, house, car, certificate...) and a reference to the owner. depending on the usecase, the ownership can be transfered or not or only under defined conditions.

business rule contracts

In private or consortium blockchains business rule contracts are used. Often these blockchain systems make a distinction of two data systems. First the blockchain itself, that is holding transactions in sequential order, that order can not be changed. And second a state database.

In hyperledger fabric, the state db is defined as a key value store, and in most cases implemented using couchdb. In sawtooth the data store is a custom merkle tree that is also used like a key value store.

The smartcontract in a business rule blockchain define the rules how a business is run. technically defining methods that will update the state database and apply rules for authentication and other validations.

implications

When learning about etherium smartcontracts, I often asked: how do I store all my data. and the answer is: you don't. One smartcontract only reflects one business process and hopefully that process is finite(has an end, even if it is far in the future). You might give the eth contract and its methods a meaningful name, but the true meaning comes from the application that is interacting witg that contract.

Business rule contracts can represent business processes and rules much better and more clear. however instead of defining the rules for once incident of a process, they describe the rules for the long run. This is making it much more important to reach consensus of the business rules/smartcontract. This is making it particular hard to stablish this kind of contract, not technically but organisatorial.

eth Article's
30 articles in total
Favicon
How to Use Limit Orders on SpookySwap for Precise Trading
Favicon
Exploring the Latest Updates and Features of Polygon Bridge
Favicon
ETH夹子Uniswap夹子SOL夹子套利机器人合约部署教程
Favicon
RECOVER LOST BITCOIN WALLET SAFELY WITH DIGITAL HACK RECOVERY
Favicon
SpookySwap: Key to Enhancing Liquidity, User Growth, and DeFi Adoption on Fantom
Favicon
The Impact of SpookySwap on the Fantom Ecosystem
Favicon
The Most Popular Payment Options for Cryptocasinos
Favicon
Discovering Top Crypto Casino Bonuses
Favicon
Cryptocasino vs Traditional Online Casino Bonuses - A Comparative Analysis
Favicon
Unlock the Secrets to Maximizing Your Winnings with Altcoins in Cryptocasinos
Favicon
Discover Why Slot Games Have Become a Craze in Cryptocasinos!
Favicon
HIRE DIGITAL HACK RECOVERY FOR BEST STOLEN CRYPTO RECOVERY SERVICES ONLINE
Favicon
🚀 Welcome to BitPower Loop, providing you with unlimited business opportunities! 🎉
Favicon
🚀 Welcome to BitPower Loop, providing you with unlimited business opportunities! 🎉
Favicon
🚀 Welcome to BitPower Loop, providing you with unlimited business opportunities! 🎉
Favicon
Welcome to BitPower Loop, providing you with unlimited business opportunities!
Favicon
GetBlock Releases Crypto Faucets for Web3 Developers on EVM
Favicon
How to choose a crypto wallet to keep your money safe
Favicon
XRP Ledger vs Ethereum: A User-Friendly Examination of their Pros and Cons
Favicon
9 Dangerous Solidity Gas Optimization Techniques for Gas Golf Contests
Favicon
Full Stack WEB3 Developer- Roadmap and Free Resources
Favicon
web3 domain for sell
Favicon
What exactly is Ethereum ?
Favicon
Two Types of SmartContracts
Favicon
PICASSO GALLARY GIVEAWAY
Favicon
A compelling argument as to why we should use eþ and þorn.
Favicon
Demystifying Login with Ethereum
Favicon
Blockchain
Favicon
Create a Dapp with ReactJS, Ethers and Solidity
Favicon
NFTs: TECH ART OR TRASH

Featured ones: