예제 #1
0
        static void Main(string[] args)
        {
            Blockchain   bc  = new Blockchain();
            SharpKeyPair skp = SharpKeyPair.Create();

            while (true)
            {
                Block b = Miner.Solve(skp, bc);
                bc.AddBlock(b);
            }
        }
예제 #2
0
 public void RequestKeyPair(byte[] data)
 {
     Log.NewLine($"Sending keypair.");
     Send(Opcodes["RequestKeyPairResponse"], SharpKeyPair.Create().AsData());
 }