블록체인과 유니티3d : Coding your own blockchain with Unity3D

 

 

Coding your own blockchain with Unity3D

Coding your own blockchain with Unity3D

 

To understand blockchain technology, make one

 
Unity3D isn't only great for production, it's also a fun way to explore and learn.
I've been working with solidity lately, but I never really dived into the technicalities of implementing a blockchain and/or a cryptocurrency. When I came across the NaiveCoin tutorial on github, I thought it'd be fun to port it in C# and visualize the mining process with Unity3D.
Screenshot of a Unity3D interface showing the mining process of a custom blockchain
 

It implements a transaction pool which you can fill with transactions from one node to another. Once you click on mine, all the nodes are going to compete against each other and the first one to find the block will broadcast it to the others. They will then confirm the block, add it to their blockchain and stop mining. I decided to upload the project as it would be an easy way for any Unity / C# dev to understand more deeply how a blockchain and how a cryptocurrency works. Please grab it and have fun !

The original tutorial, which you can refer to to understand the code's logic, is available here.

Implemented :

  • Simple blockchain with sha256 hash
  • Proof-of-work with adaptive difficulty
  • Nakamoto consensus
  • Coin base transaction rewarding miners
  • Transactions with RSA signature
  • Transaction pool (Bitcoin's mem like)
  • Simulation of 3 nodes with concurrent mining

Have fun !

[출처] http://thibautdumont.fr/en/creating-blockchain-cryptocurrency-unity3d/

 

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

 

Unity3D-NaiveCoin

Unity3D-NaiveCoin-master.zip

Bitcoin-like PoW blockchain made from scratch with Unity3D and C#

http://thibautdumont.fr/en/creating-blockchain-cryptocurrency-unity3d/

Unity3D-NaiveCoin is a port of the well-known NaiveCoin tutorial (https://lhartikk.github.io/
Code was rewriten in an object-oriented manner with mono behaviour objects (each block is a game object). 
It simulates 3 nodes in a 2D scene showing the mining process and allowing to send transactions between nodes.

I also added concurrent mining and an interruption mechanism when a block is received.

Feel free to use it as a playground to understand what a blockchain is about :)

 

[출처] https://github.com/thibautvdu/Unity3D-NaiveCoin

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
» 블록체인과 유니티3d : Coding your own blockchain with Unity3D file 졸리운_곰 2019.02.22 536
50 DEP10401 : Cordova Simulate에서 앱을 실행하려면 Google Chrome이 필요합니다. 하지만 이 컴퓨터에 Chrome이 설치되어 있지 않습니다. https://www.google.com/chrome/browser/index.html에서 Chrome을 설치하세요. file 졸리운_곰 2019.01.30 441
49 Cordova 프로젝트 진행하기 (Hello World) file 졸리운_곰 2019.01.20 345
48 Cordova 개발환경 구성하기 (for Window) file 졸리운_곰 2019.01.20 568
47 자마린 (xamarin) firebase 졸리운_곰 2019.01.04 329
46 business-app-sample file 졸리운_곰 2018.09.06 516
45 A lightweight JSON library for Lua file 졸리운_곰 2018.04.09 379
44 Using PHP and MySQL with Ionic file 졸리운_곰 2017.11.24 782
43 모바일 앱 제작 시 꼭 알아야 할 전략│Localization file 졸리운_곰 2017.10.24 531
42 Re-Architecting a Firebase app to work with Node.js and MongoDB file 졸리운_곰 2017.10.19 530
41 IT 서비스 스토리보드 (와이어프레임) 샘플 file 졸리운_곰 2017.10.10 2854
40 모바일앱 스토리 보드 샘플 file 졸리운_곰 2017.10.10 540
39 스타트업과 앱 기획을 위한 UI Sketch Sheet file 졸리운_곰 2017.10.10 984
38 Minecraft : multicaft server 로그인시 500 database 에러시 file 졸리운_곰 2017.09.10 583
37 플래시 게임을 대체할 HTML5 게임 엔진 순위 file 졸리운_곰 2017.07.22 415
36 Reflection of Unity C# file 졸리운_곰 2017.06.25 628
35 [유니티 C# 기초 강의] 12. 델리게이트 file 졸리운_곰 2017.06.25 398
34 [3D 수학] 사원수(Quaternion : 쿼터니언) file 가을의곰 2017.06.10 835
33 각도와 거리로 좌표 구하기 file 가을의곰 2017.06.10 1330
32 [OpenGL]Quaternion (사원수)를 이용한 회전 가을의곰 2017.06.10 785
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED