You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/rust/trezor-client/src/client/solana.rs

16 lines
482 B

use super::{handle_interaction, Trezor};
use crate::{error::Result, protos};
impl Trezor {
// SOLANA
pub fn solana_get_address(&mut self, path: Vec<u32>) -> Result<String> {
let mut req = protos::SolanaGetAddress::new();
req.address_n = path;
req.show_display = Some(true);
let address = handle_interaction(
self.call(req, Box::new(|_, m: protos::SolanaAddress| Ok(m.address().into())))?,
)?;
Ok(address)
}
}