Skip to content

Instantly share code, notes, and snippets.

@satran004
Last active June 27, 2023 03:56
Show Gist options
  • Save satran004/2b1d34817170f0353302d12cbe9e0549 to your computer and use it in GitHub Desktop.
Save satran004/2b1d34817170f0353302d12cbe9e0549 to your computer and use it in GitHub Desktop.
String auxDataCbor = "d90103a100a119074eaa6840636f6e74657874781e68747470733a2f2f773369642e6f72672f6f70656e6261646765732f76326b6465736372697074696f6e75555a4820426c6f636b636861696e2043656e74657265656d61696c76636c617564696f2e746573736f6e6540757a682e6368626964783c68747470733a2f2f66696c65732e6966692e757a682e63682f62646c742f636572742f6f70656e6261646765732f6973737565725f69642e6a736f6e66697373756572783a50726f662e2044722e20436c617564696f204a2e20546573736f6e652c2043686169726d616e20262041636164656d6963204469726563746f72646e616d657819556e6976657273697479206f66205a75726963682c20555a48697075626c69634b6579606474797065664973737565726375726c781e68747470733a2f2f7777772e626c6f636b636861696e2e757a682e63682f6c766572696669636174696f6e6b5369676e65644261646765";
byte[] auxHashBytes = Blake2bUtil.blake2bHash256(HexUtil.decodeHexString(auxDataCbor));
System.out.println(HexUtil.encodeHexString(auxHashBytes));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment