All Projects → kofj → Naivechain

kofj / Naivechain

Licence: mit
A naive and simple implementation of blockchains.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Naivechain

Road2blockchain
180天搞懂区块链。 区块链的浪潮已来, 当一个弄潮儿,随时准备冲上浪潮之巅。(由于时间精力的原因, 项目暂时搁置,不再更新。 抱歉, 有一腔热情,但是吹下的牛逼没有按时完成。不过对区块链依然保持关注, 欢迎大家关注公众号allinblockchain)
Stars: ✭ 254 (-6.62%)
Mutual labels:  blockchain
Smart Contract Search Engine
Takes a link to a smart contract's raw ABI file and an RPC URL and then indexes all instances of that smart contract
Stars: ✭ 265 (-2.57%)
Mutual labels:  blockchain
Celo Monorepo
Official repository for core projects comprising the Celo platform
Stars: ✭ 269 (-1.1%)
Mutual labels:  blockchain
Awesome Neo
Resources for working with the NEO blockchain
Stars: ✭ 259 (-4.78%)
Mutual labels:  blockchain
Octopus
Security Analysis tool for WebAssembly module (wasm) and Blockchain Smart Contracts (BTC/ETH/NEO/EOS)
Stars: ✭ 261 (-4.04%)
Mutual labels:  blockchain
Polkadot
Polkadot Node Implementation
Stars: ✭ 4,915 (+1706.99%)
Mutual labels:  blockchain
Sia
Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
Stars: ✭ 2,731 (+904.04%)
Mutual labels:  blockchain
Eventeum
A resilient Ethereum event listener that bridges your smart contract events and backend microservices
Stars: ✭ 272 (+0%)
Mutual labels:  blockchain
Blockchain Network On Kubernetes
Demonstrates the steps involved in setting up your business network on Hyperledger Fabric using Kubernetes APIs on IBM Cloud Kubernetes Service.
Stars: ✭ 261 (-4.04%)
Mutual labels:  blockchain
Ruby Ethereum
A Ruby implementation of Ethereum.
Stars: ✭ 270 (-0.74%)
Mutual labels:  blockchain
Web Wallet
Stars: ✭ 261 (-4.04%)
Mutual labels:  blockchain
Protocols
A zkRollup DEX & Payment Protocol
Stars: ✭ 260 (-4.41%)
Mutual labels:  blockchain
Monax
DEPRECATED. To be removed December, 2018 (use monax/bosmarmot)
Stars: ✭ 269 (-1.1%)
Mutual labels:  blockchain
Go Vite
Official Go implementation of the Vite protocol
Stars: ✭ 257 (-5.51%)
Mutual labels:  blockchain
Weiwallet Ios
Wei Wallet is an open source Ethereum wallet for iOS
Stars: ✭ 271 (-0.37%)
Mutual labels:  blockchain
Lisk Sdk
🔩 Lisk software development kit
Stars: ✭ 2,767 (+917.28%)
Mutual labels:  blockchain
Lunie
Lunie is staking, simplified ✨
Stars: ✭ 266 (-2.21%)
Mutual labels:  blockchain
Zerotoblockchain
Tutorial for Zero to Blockchain series
Stars: ✭ 272 (+0%)
Mutual labels:  blockchain
Go Cyber
Your 🔵 Superintelligence
Stars: ✭ 270 (-0.74%)
Mutual labels:  blockchain
Blockchain go
A simplified blockchain implementation in Golang
Stars: ✭ 3,150 (+1058.09%)
Mutual labels:  blockchain

naivechain

A naive and simple implementation of blockchains.

Build And Run

  • Download and compile go get -v github.com/kofj/naivechain

  • Start First Node

    naivechain -peers ""
    
  • Start Second Node

    naivechain -api :3002 -p2p :6002 -peers ws://localhost:6001
    

HTTP API

  • query blocks

    curl http://localhost:3001/blocks
    
    
  • mine block

    curl -H "Content-type:application/json" --data '{"data" : "Some data to the first block"}' http://localhost:3001/mine_block
    
    
  • add peer

    curl -H "Content-type:application/json" --data '{"peer" : "ws://localhost:6002"}' http://localhost:3001/add_peer
    
    
  • query peers

    curl http://localhost:3001/peers
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].