It would probably throw if urlTag or others have .length < 2. Also it looks like it expects json middleware and has to stringify the body, but then if stringified version differs from original byte array then hashes won't match, so maybe it should go before json middleware and have body as bytes?