Struct solana_remote_wallet::ledger::LedgerWallet [−][src]
pub struct LedgerWallet { pub device: HidDevice, pub pretty_path: String, pub version: FirmwareVersion, }
Ledger Wallet device
Fields
device: HidDevice
pretty_path: String
version: FirmwareVersion
Implementations
impl LedgerWallet
[src]
impl LedgerWallet
[src]pub fn new(device: HidDevice) -> Self
[src]
pub fn get_settings(&self) -> Result<LedgerSettings, RemoteWalletError>
[src]
Trait Implementations
impl Debug for LedgerWallet
[src]
impl Debug for LedgerWallet
[src]impl RemoteWallet for LedgerWallet
[src]
impl RemoteWallet for LedgerWallet
[src]fn name(&self) -> &str
[src]
fn read_device(
&mut self,
dev_info: &DeviceInfo
) -> Result<RemoteWalletInfo, RemoteWalletError>
[src]
fn read_device(
&mut self,
dev_info: &DeviceInfo
) -> Result<RemoteWalletInfo, RemoteWalletError>
[src]Parse device info and get device base pubkey
fn get_pubkey(
&self,
derivation_path: &DerivationPath,
confirm_key: bool
) -> Result<Pubkey, RemoteWalletError>
[src]
fn get_pubkey(
&self,
derivation_path: &DerivationPath,
confirm_key: bool
) -> Result<Pubkey, RemoteWalletError>
[src]Get solana pubkey from a RemoteWallet
fn sign_message(
&self,
derivation_path: &DerivationPath,
data: &[u8]
) -> Result<Signature, RemoteWalletError>
[src]
fn sign_message(
&self,
derivation_path: &DerivationPath,
data: &[u8]
) -> Result<Signature, RemoteWalletError>
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,