[−][src]Struct ledger_polkadot::PolkadotApp
Polkadot App
Methods
impl PolkadotApp
[src]
pub fn connect() -> Result<Self, Error>
[src]
Connect to the Ledger App
pub fn version(&self) -> Result<Version, Error>
[src]
Retrieve the app version
pub fn address(
&self,
account: u32,
change: u32,
address_index: u32,
require_confirmation: bool
) -> Result<Address, Error>
[src]
&self,
account: u32,
change: u32,
address_index: u32,
require_confirmation: bool
) -> Result<Address, Error>
Retrieves the public key and address
pub fn sign(
&self,
account: u32,
change: u32,
address_index: u32,
message: &[u8]
) -> Result<[u8; 64], Error>
[src]
&self,
account: u32,
change: u32,
address_index: u32,
message: &[u8]
) -> Result<[u8; 64], Error>
Sign a transaction
Trait Implementations
impl Send for PolkadotApp
[src]
Auto Trait Implementations
impl !Sync for PolkadotApp
impl Unpin for PolkadotApp
impl UnwindSafe for PolkadotApp
impl !RefUnwindSafe for PolkadotApp
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,