我想尝试做一个区块链,所以我寻找在C#中制作区块链的资源。我看到了一个叫做Nblockchain的项目,这个项目应该能帮助我。
无论如何,我试着运行它,虽然它运行,但它给了我一些错误。
NBlockchain.Services.BlockchainNode:Information: Requesting head block
The thread 0x56b4 has exited with code 0 (0x0).
The thread 0x7464 has exited with code 0 (0x0).
NBlockchain.Services.BlockMiner:Informa
我已经使用arraylist容器对象(块类)在java中实现了一个简单的区块链。
public static ArrayList<Block> blockchain = new ArrayList<Block>();
..。和block类,包含我需要存储到区块链中的事务。
public Block(transaction data,String previousHash ) {
this.data = data;
this.previousHash = previousHash;
this.timeStamp = new Dat