fixed ordering in concatenation of previous chain hash with data hash.
@@ -185,8 +185,8 @@ private ERSUtil()
{
OutputStream digOut = digCalc.getOutputStream();
- digOut.write(chainHash);
digOut.write(dataHash);
+ digOut.write(chainHash);
digOut.close();
return digCalc.getDigest();
