在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:arcalinea/simplechain开源软件地址:https://github.com/arcalinea/simplechain开源编程语言:Go 100.0%开源软件介绍:Simple blockchainA simple blockchain written in Go, demonstrating use of libp2p and IPFS for networking and block storage layers. Blocks currently save only to memory, and chain starts from scratch each time it's run. P2P networking layerStarts a libp2p node. Sets up pubsub, subscribes to "blocks" and "transactions" topics. Connecting to another node is currently manual. Start with first address as argument.
Block storageBlocks are content-addressed and saved in memory through the IPFS data format. MiningMining is a proof-of-work algorithm that hashes a random nonce using sha256, seeking a target solution.
Block and transaction validationEach block received over network is processed, and saved if it is valid. Reorg logic is naive, and based on longest chaintip. TODO: difficulty WalletWallet and account behavior is a stub, currently only contains a function that returns an ecdsa keypair.
RPC interfaceStarts up an http server, provides command line RPC interface. Cli must be built and run separately.
Commands
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论