Algorand address from hex value - General - Algorand
Algorand address from hex value
post by hungpq on Mar 23, 2022
Hi everyone,
i want to ask if there are anyway to get the address (58 length) from hex value (64 length).
the story is i got base64 input, then i decode it to hex (it does include padding hex of others value) and get the address in hex value (i beleive that since when i paste it in the explorer, it did show the correct address)
so how does that work? it would be great if you could write it in python.
Thanks for reading!
post by fabrice on Mar 23, 2022
See How to convert public key back to address in js sdk - #3 by fabrice
post by hungpq on Mar 23, 2022
Thanks for your answer. i did read it but what i got is hex value, not base64 value.
the hex value with length of 64 and it does represent the address (58 length) i believe
post by Ben on Mar 23, 2022
If its 64 bytes in hex, its 32 bytes raw. That’d be the pub key which you can just encode_address on.
See the docs here: Encoding and Decoding - Algorand Developer Portal