Skip to main content

commit_fee_conversion_info

Function commit_fee_conversion_info 

Source
pub fn commit_fee_conversion_info(
    conversion_info: FeeConversionInfo,
    salt: Word,
) -> (Word, Vec<Felt>)
Expand description

Commits to the given conversion info under salt for passing to the authentication procedure via the transaction’s auth args.

Returns the auth args together with the advice map value holding their preimage: the auth args are the commitment hash(CONVERSION_INFO || SALT) and the advice map must map them to [SALT, CONVERSION_INFO], which miden::standards::fee::load_conversion_info reads and verifies in-VM.

Committing via the auth args means the signature over the transaction summary authorizes the payment asset and rate, while the salt slot keeps the auth args usable as a unique salt for replay protection.