In the app im building, the user has the option to upload a pdf file, that pdf is then converted to an hash and then sent to an api, where that hash is signed, and then in r