* Returns hex string representing given bytes. * @param {Uint8Array} bytes Bytes * @return {string} Hex string
(bytes)
| 25 | * @return {string} Hex string |
| 26 | */ |
| 27 | static hexStringFromBytes (bytes) { |
| 28 | return Array.from(bytes) |
| 29 | .map(byte => ('0' + byte.toString(16)).slice(-2)) |
| 30 | .join('') |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Returns bytes from given hex string. |
no test coverage detected