Skip to content

Commit

Permalink
fix: Remove unused comment on get_eth_address and add doc comment for…
Browse files Browse the repository at this point in the history
… evm TrezorSession public functions
  • Loading branch information
shamardy committed Apr 1, 2024
1 parent dc6ef2a commit ee8ecf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mm2src/trezor/src/eth/eth_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ macro_rules! trim_left {
}

impl<'a> TrezorSession<'a> {
/// Unused for now. Added for future use like implementation of an rpc returning eth address
/// Retrieves the EVM address associated with a given derivation path from the Trezor device.
pub async fn get_eth_address<'b>(
&'b mut self,
derivation_path: DerivationPath,
Expand All @@ -77,6 +77,7 @@ impl<'a> TrezorSession<'a> {
self.call(req, result_handler).await
}

/// Retrieves the EVM public key associated with a given derivation path from the Trezor device.
pub async fn get_eth_public_key<'b>(
&'b mut self,
derivation_path: &DerivationPath,
Expand All @@ -90,6 +91,7 @@ impl<'a> TrezorSession<'a> {
self.call(req, result_handler).await
}

/// Signs a transaction for any EVM-based chain using the Trezor device.
pub async fn sign_eth_tx(
&mut self,
derivation_path: &DerivationPath,
Expand Down

0 comments on commit ee8ecf3

Please sign in to comment.