starknet_signers/
lib.rs

1//! Starknet signer interface and common implementations.
2
3#![deny(missing_docs)]
4
5mod key_pair;
6pub use key_pair::{SigningKey, VerifyingKey};
7
8#[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))]
9pub use key_pair::KeystoreError;
10
11mod signer;
12pub use signer::{Signer, SignerInteractivityContext};
13
14/// Module containing types related to the use of a simple in-memory signer.
15pub mod local_wallet;
16pub use local_wallet::LocalWallet;
17
18/// Module containing types related to the Ledger hardware wallet.
19#[cfg(feature = "ledger")]
20pub mod ledger;
21#[cfg(feature = "ledger")]
22pub use ledger::{DerivationPath, LedgerError, LedgerSigner};
23
24/// An error type that indicates an error cannot possibly occur. Used as placeholder where
25/// [`Result`] is expected.
26#[derive(Debug, thiserror::Error)]
27pub enum Infallible {}