Install package from nuget:
Install-Package Mir.Ethernity.Dat
using Mir.Ethernity.Dat;
var inputEncodedData = await File.ReadAllBytesAsync(@"example.dat");
var decodedData = DatEncoder.Decode(inputEncodedData);
var encodedData = DatEncoder.Encode(decodedData);