encode() should return a Uint8Array in the IDL, in my opinion. Right now the prose says that it does, while the IDL has ArrayBufferView, which doesn't make much sense to me. -Boris