I want to be able to manually generate the id of an asset contract by following the ENVELOPE_TYPE_CONTRACT_ID_FROM_ASSET specified in https://github.com/stellar/stellar-protocol/blob/master/core/cap-0046.md.
I know how to do this on Javascript and python but not sure what will be the best way to do it inside a smart contract. I saw there is a stellar-xdr (which is in early development) but again not sure if it's the best way to do it
What is the goal: My protocol issues different assets based on a single issuer so I want to be able to just save the issuer and let the protocol generate the contract ids when necessary based on values sent