Each SDK has a method to convert the 58 byte address (the one we see normally) to the 32 byte address that logic needs. The implementation is just base32 encode/decode with some padding adding/removal logic
In Python for example:
https://py-algorand-sdk.readthedocs.io/en/latest/algosdk/encoding.html#algosdk.encoding.decode_address
Ben