The focus of this PR laid on the passing all the needed data in the signature field of tx_info instead of as a param.
To achieve it I implemented Account trait for SessionAccount to achieve usage similar to SingleOwnedAccount, but using the Session Token feature.
Passing and checking signature works as planned, but methods calculating transaction hash in Rust and Cairo differ, so using hardcoded values for now.
The focus of this PR laid on the passing all the needed data in the signature field of
tx_info
instead of as a param. To achieve it I implementedAccount
trait forSessionAccount
to achieve usage similar toSingleOwnedAccount
, but using the Session Token feature.Passing and checking signature works as planned, but methods calculating transaction hash in Rust and Cairo differ, so using hardcoded values for now.