Struct solana_remote_wallet::ledger::LedgerWallet
source · [−]pub struct LedgerWallet {
pub device: HidDevice,
pub pretty_path: String,
pub version: FirmwareVersion,
}
Expand description
Ledger Wallet device
Fields
device: HidDevice
pretty_path: String
version: FirmwareVersion
Implementations
sourceimpl LedgerWallet
impl LedgerWallet
pub fn new(device: HidDevice) -> Self
pub fn get_settings(&self) -> Result<LedgerSettings, RemoteWalletError>
Trait Implementations
sourceimpl Debug for LedgerWallet
impl Debug for LedgerWallet
sourceimpl RemoteWallet for LedgerWallet
impl RemoteWallet for LedgerWallet
fn name(&self) -> &str
sourcefn read_device(
&mut self,
dev_info: &DeviceInfo
) -> Result<RemoteWalletInfo, RemoteWalletError>
fn read_device(
&mut self,
dev_info: &DeviceInfo
) -> Result<RemoteWalletInfo, RemoteWalletError>
Parse device info and get device base pubkey
sourcefn get_pubkey(
&self,
derivation_path: &DerivationPath,
confirm_key: bool
) -> Result<Pubkey, RemoteWalletError>
fn get_pubkey(
&self,
derivation_path: &DerivationPath,
confirm_key: bool
) -> Result<Pubkey, RemoteWalletError>
Get solana pubkey from a RemoteWallet
sourcefn sign_message(
&self,
derivation_path: &DerivationPath,
data: &[u8]
) -> Result<Signature, RemoteWalletError>
fn sign_message(
&self,
derivation_path: &DerivationPath,
data: &[u8]
) -> Result<Signature, RemoteWalletError>
Sign transaction data with wallet managing pubkey at derivation path m/44’/501’/
Auto Trait Implementations
impl RefUnwindSafe for LedgerWallet
impl Send for LedgerWallet
impl !Sync for LedgerWallet
impl Unpin for LedgerWallet
impl UnwindSafe for LedgerWallet
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more