diff --git a/keycard_wallet/python/keycard_wallet.py b/keycard_wallet/python/keycard_wallet.py index b8f60279..21e966cb 100644 --- a/keycard_wallet/python/keycard_wallet.py +++ b/keycard_wallet/python/keycard_wallet.py @@ -7,7 +7,6 @@ from keycard.commands.export_lee_key import export_lee_key from mnemonic import Mnemonic from keycard import constants -import keycard import os import secrets diff --git a/keycard_wallet/src/lib.rs b/keycard_wallet/src/lib.rs index c20fb663..a2166983 100644 --- a/keycard_wallet/src/lib.rs +++ b/keycard_wallet/src/lib.rs @@ -1,7 +1,6 @@ use std::path::PathBuf; use nssa::{AccountId, PublicKey, Signature}; -use nssa_core::NullifierPublicKey; use pyo3::{prelude::*, types::PyAny}; use serde::{Deserialize, Serialize}; use zeroize::Zeroizing; @@ -268,15 +267,6 @@ impl KeycardWallet { }) } - pub fn get_private_account_id_for_path_with_connect( - pin: &str, - key_path: &str, - ) -> PyResult { - let (nsk, _vsk) = Self::get_private_keys_for_path_with_connect(pin, key_path)?; - let npk = NullifierPublicKey::from(&*nsk); - - Ok(format!("Private/{}", AccountId::from((&npk, 0_u128)))) - } } fn pairing_file_path() -> Option {