[][src]Struct ledger_polkadot::PolkadotApp

pub struct PolkadotApp { /* fields omitted */ }

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]

Retrieves the public key and address

pub fn sign(
    &self,
    account: u32,
    change: u32,
    address_index: u32,
    message: &[u8]
) -> Result<[u8; 64], Error>
[src]

Sign a transaction

Trait Implementations

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]