fabric-java-sdk中blockInfo.getDataHash二进制转字符串

fabric-java-sdk中blockInfo.getDataHash二进制转字符串(byte[] 转 string),如下,使用 Hex.encodeHexString


Hex.encodeHexString(blockInfo.getDataHash);

Hex.encodeHexString(blockInfo.getPreviousHash);