xJonathanLEI / starknet-rs

Complete Starknet library in Rust™
https://starknet.rs
Apache License 2.0
281 stars 96 forks source link

feat: signer interactivity #617

Closed xJonathanLEI closed 3 months ago

xJonathanLEI commented 3 months ago

Makes signer implementations specify whether a signing operation is "interactive" (or just expensive). Utilizing this new information, Account and AccountFactory now make more informed decisions on whether to request real signatures for different types of operations.

The most significant benefit of this change is allowing using hardware wallet without excessive unnecessary signing requests.

This PR is made a breaking change, despite the possibility of maintaining backward compatibility by providing default implementations of the new trait methods. This is because #611 has already introduced a breaking change on starknet-signers anyway.

Breaking changes include: