neotheprogramist / cairo-webauthn

Cairo verification of webauthn authentication credentials
GNU General Public License v3.0
0 stars 0 forks source link

1/3 Session Account #17

Closed neotheprogramist closed 10 months ago

matzayonc commented 10 months ago

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.