Beispiel #1
0
        public void InitBlockChain()
        {
            GenesisBlock genesis = new GenesisBlock();

            genesis.Hash            = ProofOfWork.MineHash(genesis, PublicKey);
            genesis.MinersPublicKey = PublicKey;
            BlockChain = new BlockChain(genesis);
        }
Beispiel #2
0
 public byte[] MineHash(IBlock block)
 {
     return(ProofOfWork.MineHash(block, PublicKey));
 }