(x: unknown)
| 265 | } |
| 266 | |
| 267 | function asBytestring(x: unknown): Uint8Array { |
| 268 | if (x instanceof Uint8Array) { |
| 269 | return x; |
| 270 | } |
| 271 | throw new Error('Bytestring expected, but got ' + typeof x); |
| 272 | } |
| 273 | |
| 274 | function bytestringToString(bstr: unknown): string { |
| 275 | if (!(bstr instanceof Uint8Array)) { |
no outgoing calls
no test coverage detected