diff --git a/lee/state_machine/core/src/nullifier.rs b/lee/state_machine/core/src/nullifier.rs index e32b6108..8eaf4740 100644 --- a/lee/state_machine/core/src/nullifier.rs +++ b/lee/state_machine/core/src/nullifier.rs @@ -36,23 +36,6 @@ impl PrivateAddressPlaintext { } } -impl AccountId { - #[must_use] - pub fn for_regular_private_account( - npk: &NullifierPublicKey, - vpk: &ViewingPublicKey, - identifier: Identifier, - ) -> Self { - PrivateAddressPlaintext::new(*npk, vpk.clone(), identifier).account_id() - } -} - -impl From<(&NullifierPublicKey, &ViewingPublicKey, Identifier)> for AccountId { - fn from((npk, vpk, identifier): (&NullifierPublicKey, &ViewingPublicKey, Identifier)) -> Self { - PrivateAddressPlaintext::new(*npk, vpk.clone(), identifier).account_id() - } -} - impl AsRef<[u8]> for NullifierPublicKey { fn as_ref(&self) -> &[u8] { self.0.as_slice() diff --git a/lee/state_machine/core/src/program.rs b/lee/state_machine/core/src/program.rs index 3075f13a..4af96dc7 100644 --- a/lee/state_machine/core/src/program.rs +++ b/lee/state_machine/core/src/program.rs @@ -162,17 +162,6 @@ impl AccountId { .pda_account_id(program_id, seed), } } - - #[must_use] - pub fn for_private_pda( - program_id: &ProgramId, - seed: &PdaSeed, - npk: &NullifierPublicKey, - vpk: &ViewingPublicKey, - identifier: Identifier, - ) -> Self { - PrivateAddressPlaintext::new(*npk, vpk.clone(), identifier).pda_account_id(program_id, seed) - } } impl PrivateAddressPlaintext {