Add json output listIdentities command

This commit is contained in:
AsamK 2021-08-21 18:37:51 +02:00
parent 70fc2381d3
commit 11c90fa032
5 changed files with 94 additions and 25 deletions

View file

@ -8,11 +8,16 @@ public class Hex {
}
public static String toString(byte[] bytes) {
if (bytes.length == 0) {
return "";
}
var buf = new StringBuffer();
for (final var aByte : bytes) {
appendHexChar(buf, aByte);
buf.append(" ");
}
buf.deleteCharAt(buf.length() - 1);
return buf.toString();
}