private Keccak DecodeCodeHash(RlpStream rlpStream) { Keccak codeHash = null; if (_slimFormat && rlpStream.IsNextItemEmptyArray()) { rlpStream.ReadByte(); codeHash = Keccak.OfAnEmptyString; } else { codeHash = rlpStream.DecodeKeccak(); } return(codeHash); }
private Keccak DecodeStorageRoot(RlpStream rlpStream) { Keccak storageRoot = null; if (_slimFormat && rlpStream.IsNextItemEmptyArray()) { rlpStream.ReadByte(); storageRoot = Keccak.EmptyTreeHash; } else { storageRoot = rlpStream.DecodeKeccak(); } return(storageRoot); }