public void TestEmptySerialize() { var n = new MPTNode(); var expect = "04"; Assert.AreEqual(expect, n.ToArray().ToHexString()); Assert.AreEqual(expect, NodeToArrayAsChild(n).ToHexString()); }
private void PutToStore(IStore store, MPTNode node) { store.Put(Concat(new byte[] { 0xf0 }, node.Hash.ToArray()), node.ToArray()); }
private void PutToStore(IStore store, MPTNode node) { store.Put(0xf0, node.Hash.ToArray(), node.ToArray()); }