Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

both "ownerToAddress" and "jwkToAddress" return the wrong addresses #237

Open
Gabulhas opened this issue Nov 29, 2024 · 0 comments
Open

Comments

@Gabulhas
Copy link

As an example, I've done the following

arweave.wallets.ownerToAddress("ZqQjpyWLP8SncgFySwNyKM95typ8X1J-AZJmhctiIoNtI0OPbmr8Q8pZ4VxjLkzMQN955zQkbuDeDIxBowL8gQPlXqKyhzcV5mTjHmDKJC885rtlKZYOicMfCFtp7xxuI6Ha1YHrjceJFh8VTvE4S-SisgYwpfgTQpGqD0NL_lwjwErGp6AND07_VaTc2BNEqUHYVPjuOqNJwHAeSfW2zpdjcGD1PBWM5Bn_cC_hne8Hwy1FIsMDdMD028jy04Rp2_TjRDRdch5c5QnYVw3DYNkHwYebXuONcmojM0Hzi27wBfulRpmSmbdSSDVA2qiVDAnpI6xO-KMvjP4twUcu8ynNJNXDR7DjyIGyljEOJ650InCVQK0WLzrCahmxfJsQKltuAtP7eahYbv40vTLbmZbKhLbTdyLAs_plijTnWG46SZqtT8eHANNDrwlnr7yqthSEbUM4OTDVPrb9A7GimBZC6YmOmpIfPM2UFOV19VQlhsgnG7HbIKKutl3DTPdbA8ZW5-y7_DHZsMF9OeZ4P1RQGldAECBrrUqQOYCipHY0J6aaOBrMrkAjHqY12T6Umuadwn_FuU0pf7Xf4awM7t4nfhqiSy7-WxF2Kn9b0MwQH6aJwIQgVfFoWpPS-nTkBChkKGp4x1DZefvgiaLUjz6-2DrwWsJPw2iKc1xksT0.")

and it returned 0doODXEEp4ITlBinpIJ_SnW9LCTkNcKpmzezFZ_x_PE

but the out put output should be jHgVhAnAwDapsZGcwQPs4td728jMFF1vYkcRhMf2d0g

Same happens with jwkToAddress.

The problem lies on the . at the end of the string, which is a standard padding for base64url.

Currently using this version 1.15.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant