Accept Uint8Array as input may be as good as a general list. Same for `.toByteArray` (could be `.toUInt8Array()`).