(bytes: Uint8Array)
| 244 | } |
| 245 | |
| 246 | const bytesToHex = (bytes: Uint8Array): string => { |
| 247 | let hex = "" |
| 248 | for (const byte of bytes) { |
| 249 | hex += byte.toString(16).padStart(2, "0") |
| 250 | } |
| 251 | return hex |
| 252 | } |
| 253 | |
| 254 | const encodeRemoteIdField = (remoteId: string | Uint8Array): Uint8Array => |
| 255 | typeof remoteId === "string" |
no test coverage detected