pub fn encode_change(change: JsValue) -> Result<Uint8Array, EncodeChange>