Friday, May 9, 2025
Social icon element need JNews Essential plugin to be activated.
BLOC PRESS
  • Home
  • Cryptocurrency
  • Bitcoin
  • Ethereum
  • Blockchain
  • Altcoin
  • Crypto Mining
  • Nft
  • Market & Analysis
No Result
View All Result
BLOC PRESS
No Result
View All Result

Ethereum in practice part 3: how to build your own transparent bank on the blockchain

Andrew Aldridge by Andrew Aldridge
July 4, 2024
in Ethereum
0
Dodging a bullet: Ethereum State Problems

[ad_1]

This is the third and final post on a series on how to use the Ethereum Wallet to create your own autonomous organisations. On the first post we detailed how to create a token, and on the second we shown how to generate a digital democracy controlled by these tokens. Now we will do the full circle and create a token controlled by the Organisation!

We are going to modify the token contract to allow it to be minted by your DAO. So save the address of your current DAO in a note pad (pay attention to the icon) and grab this source code and you know the drill: contracts > deploy new contract > solidity source code > pick contract

You can fill the parameters any way you want (yes, emojis are permitted on the string fields) but you’ll notice one new field that didn’t exist before: Central Minter. Here add the address of your newly created democracy contract.

Ethereum Wallet 2015-12-01 at 7.09.11 PM

 

Click Deploy and let’s wait for the transaction to be picked up. After it has at least two confirmations, go to your democracy contract and you’ll notice that now it owns a million of your new coins. Now if you go to the Contracts tab you’ll see that there is a new DAO dollar (admin page) contract on your collection.

Select the “mintToken” function to your right and then put any address you own as the “target”, and then the amount of new mints you want to create from thin air in their account. Press “execute” but don’t press send! You’ll notice that there is a warning saying that the transaction can’t be executed. This happens because only the Minter (which is currently set to the DAO address) can call that function and you are calling it with your main account. But the calling code is the same, which is why you can simply copy it.

Instead, copy the contract execution code from the “data” field and put it aside on a notepad. Also get the address of your new “Mint” contract and save it somewhere.

Ethereum Wallet Screen-Shot-2015-12-01-at-7.17.06-PM

Now go back to the democracy contract and create a new proposal with these parameters:

  • As the beneficiary, put the address of your new token
  • Leave etherAmount blank
  • On the jobDescription just write a small description that you are minting new coins
  • On the transactionBytecode, paste the bytecode you saved from the data field on the previous step

 

Ethereum Wallet Screen Shot 2015-12-01 at 7.22.48 PM

 

In a few seconds you should be able to see that the details on the proposal. Unlike the other fields, transactionBytecode can be extremely lengthy and therefore expensive to store on the blockchain. So instead of archiving it, the person executing the call later will provide the bytecode.

But that of course creates a security hole: how can a proposal be voted without the actual code being there? And what prevents a user from executing a different code after the proposal has been voted on? That’s why we keep the hash of the bytecode. Scroll a bit on the “read from contract” function list and you’ll see a proposal checker function, where anyone can put all the function parameters and check if they match the one being voted on. This also guarantees that proposals don’t get executed unless the hash of the bytecode matches exactly the one on the provided code.

 

It's an older code, but it checks out
It’s an older code, but it checks out

 

Now everyone can vote on the proposal and after the voting period has passed, anyone with the correct bytecode can ask the votes to be tallied up and the contract to be executed. If the proposal has enough support then the newly minted coins should appear on Alice’s account, as if it was a transfer from address Zero.

 

Why a transfer from code zero? Because it says so on the code. You can change that as you will Why a transfer from address zero? Because doing the opposite, sending a coin to 0x00 is a way to effectively destroy it, but more importantly, because it says so on the contract code. You can change that as you prefer.

 

And now you have a central minter contract that exists solely on the blockchain, completelly fraud-proof as all their activities are logged transparently. The mint can also take coins from circulation by simply sending the coins it has to address Zero, or by freezing the funds on any account, but it’s mathematically impossible for the Mint to do any of those actions or generate more coins without the support of enough shareholders of the mint.

Possible uses of this DAO:

  • The creation of a universal stable crypto currency. By controlling the total amount of coins in circulation the Mint shareholders can attempt to create an asset whose value doesn’t fluctuate too wildly.
  • Issuance of certificates of backed assets: the coins can represent an external currency or items that the Mint owns and can prove to it’s shareholders and token holders. When the Mint acquires or sells more of these assets it can burn or generate more assets to guarantee that their digital inventory will always match their real counterpart
  • Digitally backed assets. The Mint can hold ether or other ethereum based digital currencies and use that to back the value of the currencies circulating

Improvements Suggestions

There are multiple ways that this structure can be yet improved, but we will leave it as an exercise and challenge to the reader:

  1. Right now votes are made by shareholders based on freely tradable tokens. Can instead membership be based on invitation, each member getting a single vote (or maybe use quadratic voting or liquid democracy)?
  2. What about other voting mechanisms? Maybe the vote instead of being a boolean could be a more flexible arrangement: you could vote to postpone the decision, or you can make a vote that is neutral but still count to the quorum
  3. Currently all proposals have the same debating period. Can you make that proportional to the value transfer being proposed? How would you calculate that to tokens?
  4. Can you create a better token that can be automatically created by sending ether into it, which can then be retrieved by burning the token, at a fluctuating market price?
  5. What else can the DAO own or do, besides tokens?

[ad_2]

Source link

Related articles

Ethereum ETFs soar to $428M in inflows: ETH a step closer to $4K now?

Ethereum ETFs soar to $428M in inflows: ETH a step closer to $4K now?

December 7, 2024
Ethereum To Pull A BTC 2021-Like Rally? Analyst Weighs In

Ethereum To Pull A BTC 2021-Like Rally? Analyst Weighs In

December 7, 2024
Tags: BankBlockchainbuildEthereumPartpracticetransparent
Previous Post

Solana Eases Gains: Can SOL Bulls Safeguard the $132 Support?

Next Post

Karate Combat to Launch at Bitcoin 2024 Conference in Nashville

Categories

  • ! Без рубрики
  • 1
  • 10000_sat
  • 10000_tr
  • 10000_wa
  • 10000_wa2
  • 10000sat
  • 10000sat2
  • 10000sat6
  • 10000sat7
  • 10005sat
  • 10030_sat
  • 10050_wa
  • 10050sat
  • 10050tr
  • 10060_wa
  • 10065_wa
  • 10100_sat
  • 10100_sat2
  • 10100_tr
  • 10100_wa
  • 10110_sat
  • 10150_sat
  • 10150_tr
  • 10200_prod3
  • 10200_sat
  • 10200_tr
  • 10200_wa
  • 10200_wa2
  • 10210_wa
  • 10250_prod
  • 10250_sat
  • 10250_wa
  • 10280_tr
  • 10300_sat
  • 10300_wa
  • 10300sat
  • 1030i
  • 10350_tr
  • 10400_prod
  • 10400_prod2
  • 10400_sat
  • 10450_wa
  • 10480_sat
  • 10500_sat
  • 10500_sat2
  • 10500_sat3
  • 10500_wa
  • 10500_wa2
  • 10510_tr
  • 10510_wa
  • 10525_sat
  • 10550_sat
  • 10550_sat2
  • 10600_prod2
  • 10600_sat
  • 10600_sat2
  • 10600_tr
  • 10600_wa
  • 10655_pr
  • 10700_pr
  • 10700_sat
  • 10700_wa
  • 10700_wa2
  • 10710_wa
  • 10800_wa
  • 10831_wa
  • 10850_sat
  • 10985_wa
  • 11000prod3
  • 11380_wa
  • 11400_prod
  • 11400_wa
  • 11800_prod
  • 1Win Brasil
  • 1win Brazil
  • 1win casino spanish
  • 1win fr
  • 1win India
  • 1WIN Official In Russia
  • 1win Turkiye
  • 1win uzbekistan
  • 1winios
  • 1winiphone
  • 1winlegal
  • 1winRussia
  • 1xbet arabic
  • 1xbet Casino AZ
  • 1xbet casino BD
  • 1xbet Korea
  • 1xbet KR
  • 1xbet malaysia
  • 1xbet Morocco
  • 1xbet RU
  • 1xbet russia
  • 1xbet russian1
  • 1xbet-argentinos.org
  • 1xbet-download.info
  • 1xbetapps.site
  • 1xbetofficial.co.za
  • 2
  • 2060
  • 21
  • 22bet
  • 22bet IT
  • 26
  • 28
  • 280i
  • 2876
  • 30
  • 31
  • 32
  • 365i
  • 560
  • 5hbetcom.net
  • 656bet.net
  • 691
  • 7777777
  • 8550_tr
  • 8600_tr2
  • 888starz bd
  • 8mbet.site
  • 9030_wa
  • 9110_wa
  • 9220_wa
  • 9600_wa
  • 9617_tr
  • 9700_sat
  • 9700_sat2
  • 9760_sat
  • 979bet.biz
  • 9800_wa
  • 9900_sat
  • 9900_sat2
  • 9900_wa
  • 992betbr
  • 9950_tr
  • 9950_wa
  • 9985_sat
  • 9990_tr
  • 9990sat
  • 9bet-app.com
  • adobe generative ai 1
  • adobe generative ai 3
  • adobe photoshop
  • ai bot name 2
  • AI News
  • ai sales bot 4
  • Altcoin
  • Altcoin News
  • Altcoins
  • argentinos-1xbet.com
  • Artificial Intelligence
  • austria
  • aviator
  • aviator brazil
  • aviator casino DE
  • aviator casino fr
  • aviator ke
  • aviator mz
  • aviator ng
  • aviator.li
  • aviatordeposit.in
  • azurebetbd
  • b1bet brazil
  • baji-live.plus
  • baji999-live-login.com
  • Bankobet
  • Basaribet
  • BBBB
  • BBCC
  • BBET
  • bbrbet colombia
  • bbrbet mx
  • bc-fun-game.com
  • bc-game-belarus.com
  • bc-game-uae.com
  • BCCCC
  • bcg-download.com
  • bcg-mirrors
  • bcg-nigeria.com
  • bcgame-argentinos.com
  • bcgame-fr.com
  • bcgame-myanmar.com
  • bcgame-ru
  • bcgame-ru.net
  • bd-bajilive.com
  • BET-1
  • BET-2
  • bet-winner-br
  • betandreas-mobile.com
  • betnaga.pro
  • bettafunclub.com
  • BetWinner team 03-25-3
  • BetWinner team-4
  • BetWinner-2
  • betwinner-bj.com
  • betwinner-deutsch.com
  • betwinner-gn.com
  • betwinner-italiano
  • betwinner-rw.com
  • betwinner-spanish
  • betwinner-turkish
  • betwinner-uganda.live
  • betwinner-yallah
  • betwinner-yazhou.com
  • betwinnerar
  • betwinnerbrasil.com.br
  • betwinnercameroon.com
  • betwinnercasinos
  • betwinnereal.com
  • betwinnereg.com
  • betwinnermobilindir.com.tr
  • betwinneronline.net
  • betwinnerug.com
  • BH
  • Bitcoin
  • bizzo casino
  • Blockchain
  • Blockchain Games
  • book of ra
  • book of ra it
  • Bookkeeping
  • Breaking News
  • BT
  • Business
  • casibom tr
  • casino
  • casino en ligne
  • casino en ligne fr
  • casino onlina ca
  • Casino online
  • casino online ar
  • casinò online it
  • casino zonder crucks netherlands
  • casino-goldenpanda
  • casino-vivi.com
  • casinoggbet.com
  • casinomagius
  • casinos
  • casinos-nongamstop26
  • casinotwisterwins.com
  • coinfliphub.net
  • crazy time
  • Crypto
  • Crypto Mining
  • Cryptocurrencies
  • Cryptocurrency
  • Cryptocurrency News
  • Cryptocurrency service
  • Culture
  • Defi
  • diplomrum
  • Economy
  • Education
  • en1win
  • Entertainment
  • ES_steroids
  • Ethereum
  • EXN
  • EXX
  • Fair Go Casino
  • Featured
  • FinTech
  • flashdash-casino.com
  • Forex Trading
  • fortune tiger brazil
  • fortuneclock-casino
  • fr
  • fromstillstomotion.com
  • galaxyspins-online
  • Gambling
  • Games
  • gatesofolympussiteleri.net
  • ggbet-casino-pl.net
  • ggbet-pl.win anchor
  • ggbetkasyno.net 2
  • ggbetpolska.net
  • global-bcgame.com
  • Governance
  • habtam-bet.net
  • hazybet.net
  • Health
  • html
  • IGAMING
  • indiabetwinner.com
  • istitutocomprensivoviamicheli.it
  • IT Vacancies
  • IT Вакансії
  • IT Образование
  • izzi
  • japan-bcgame.com
  • jardiance
  • jeetwin-bangladesh.onlin
  • Kasyno
  • Kasyno Online PL
  • kasyno-ggbet.net
  • kasyno-vulkan.net
  • kasynoggbet.net
  • katanaspin-online
  • khelo24bet-india1.com
  • king johnnie
  • kz-betandreas.com
  • laopcion.com.co
  • lekarenprevas.sk
  • Lifestyle
  • lovecasino1-online.com
  • lyrica
  • Maribet casino TR
  • Market
  • Market & Analysis
  • Masalbet
  • medic
  • Monobrand
  • mostbet hungary
  • mostbet italy
  • mostbet norway
  • mostbet ozbekistonda
  • Mostbet Russia
  • mostbet tr
  • mostbet-official.co.in
  • mx-bbrbet-casino
  • n_ch
  • n_pb
  • nationalbetcasino.co
  • New Post
  • News
  • Nft
  • Online Casino
  • online casino au
  • ovensofpatagonia
  • ozwin au casino
  • palmsbetbg.net anchor
  • pelican casino PL
  • Pin UP
  • pinco
  • Plinko
  • plinko in
  • plinko UK
  • pocket-option
  • pocket-option-in
  • pocket-option-in.com
  • pocket-option.fund
  • pocket-option3
  • pocket-option3.com
  • pocket-zerkalo.ru
  • pocket0ption-broker
  • pocket0ption-broker.com
  • pocketopt1on
  • pocketoption-1.com
  • pocketoption-forex.com
  • pocketoption-trade.org
  • pocketoption-vip.net
  • pocketoption-web.com
  • pokiesoz.com
  • POOO
  • POOP
  • PPOO
  • primexbt-2024
  • primexbt-exchange.com
  • primexbt-online
  • primexbt-option
  • primexbt-profit
  • primexbt-team
  • primexbt-trade
  • primexbt-traders
  • primexbt-trades
  • primexbt-wallet
  • primexbtforex
  • primexbtinvest.com
  • primexbtnew
  • primexbtnew.com
  • primexbttrading
  • pu++
  • pyramid-spins-casino
  • qwickbet.org
  • Ramenbet
  • raularagon.com.ar
  • result_1743
  • Review
  • reviewer
  • reviewprimexbt.com
  • ricky casino australia
  • savaspin
  • se
  • settings.kz
  • skovoroda.in.ua
  • slot
  • slot-gacor
  • Slots
  • slottica
  • sluts
  • Sober living
  • Software development
  • spins-heaven.com
  • Sports
  • strawmarysmith
  • sugar rush
  • Sumatriptan
  • sweet bonanza
  • sweet bonanza TR
  • The_Evolution
  • theskystore.in
  • Top News
  • top-news
  • trading-pocketoption
  • tribuna
  • uncategorised
  • Uncategorized
  • UUUU
  • vavada-croatia.casin
  • vavadaa.net
  • vavadaily.com
  • verde casino hungary
  • verde casino romania
  • vivi-bet-uz.com
  • vivi-latvia.com
  • Vovan Casino
  • vulkan-kasyno.com
  • vulkan-kasyno.net
  • Web 3.0
  • World
  • World News
  • www.artupdate.nl
  • www.cauciucuribucuresti.ro
  • www.coronatest-rv.de
  • www.ella-hoy.es
  • www.fortunetiger.com.br
  • www.sigarenfabrieken.nl
  • www.un-film-sur-riquet.fr
  • www.weisse-magie.co
  • xarelto
  • YYYY
  • zsolovi.cz
  • Без категории
  • Комета Казино
  • Финтех
  • Форекс Брокеры
  • Форекс обучение
  • Швеция

Calendar

July 2024
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Jun   Aug »

Converter

Cryptocurrency Prices 

© 2023 BLOC PRESS | All Rights Reserved

No Result
View All Result
  • Home
  • Cryptocurrency
  • Bitcoin
  • Ethereum
  • Blockchain
  • Altcoin
  • Crypto Mining
  • Nft
  • Market & Analysis

© 2023 BLOC PRESS | All Rights Reserved