(byte[] bytes)
| 2431 | } |
| 2432 | |
| 2433 | private String bytesToHex(byte[] bytes) { |
| 2434 | StringBuilder sb = new StringBuilder(bytes.length * 2); |
| 2435 | for (byte b : bytes) { |
| 2436 | sb.append(String.format("%02x", b)); |
| 2437 | } |
| 2438 | return sb.toString(); |
| 2439 | } |
| 2440 | |
| 2441 | // EIP-712 typed-data encoder. Returns the pre-digest bytes |
| 2442 | // (0x1901 || domainSeparator || hashStruct(message)) that the caller |
no test coverage detected