entropyxyz / faucet_program

0 stars 0 forks source link

`Aux Data` should only contain data specific to the message being signed #5

Open ameba23 opened 3 months ago

ameba23 commented 3 months ago

I think the only things in AuxData should be nonce, string_account_id and amount.

The other stuff should not need to be passed in at the point of signing, as it will always be the same.

As long as the chain metadata is hard-coded into the program, so should be spec_version, transaction_version, etc. Even if we manage to fix this and have a chain-agnostic program, i think this stuff should be set in the program config at the point of deploying.