argentlabs / argent-contracts-starknet

Argent accounts for Starknet
https://www.argent.xyz
GNU General Public License v3.0
166 stars 64 forks source link

Use transaction hash for signing #34

Closed juniset closed 2 years ago

juniset commented 2 years ago

Since 0.8.0, the transaction hash is available to the account as part of the tx_info object.

The transaction hash is a hash chain of all the information of the transaction:

It can thus be used to authorise transactions on an account.

This PR replaces the custom hash_multicall method by the transaction hash.