From a35f73be69b21ee62cd4940f37855161cbed2a56 Mon Sep 17 00:00:00 2001 From: Murisi Tarusenga Date: Wed, 18 Sep 2024 15:35:42 +0200 Subject: [PATCH] Removed the BuildParams::proof_generation_key function because its superceded by the ExtendedKey trait. Removed BuildParams::auth_sig because signatures can be modified after the build using the MapAuth trait. --- .../transaction/components/sapling/builder.rs | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/masp_primitives/src/transaction/components/sapling/builder.rs b/masp_primitives/src/transaction/components/sapling/builder.rs index 9c304012..f80cdda3 100644 --- a/masp_primitives/src/transaction/components/sapling/builder.rs +++ b/masp_primitives/src/transaction/components/sapling/builder.rs @@ -52,10 +52,6 @@ pub trait BuildParams { fn spend_rcv(&mut self, i: usize) -> jubjub::Fr; /// Get the spend authorization randomizer for the ith spend description fn spend_alpha(&mut self, i: usize) -> jubjub::Fr; - /// Get the authorization signature for the ith spend description - fn auth_sig(&mut self, i: usize) -> Option; - /// The proof generation key for the ith spend description - fn proof_generation_key(&mut self, i: usize) -> Option; /// Get the commitment value randomness for the ith convert description fn convert_rcv(&mut self, i: usize) -> jubjub::Fr; /// Get the commitment value randomness for the ith output description @@ -74,12 +70,6 @@ impl BuildParams for Box { fn spend_alpha(&mut self, i: usize) -> jubjub::Fr { (**self).spend_alpha(i) } - fn auth_sig(&mut self, i: usize) -> Option { - (**self).auth_sig(i) - } - fn proof_generation_key(&mut self, i: usize) -> Option { - (**self).proof_generation_key(i) - } fn convert_rcv(&mut self, i: usize) -> jubjub::Fr { (**self).convert_rcv(i) } @@ -292,14 +282,6 @@ impl BuildParams for StoredBuildParams { self.spend_params[i].alpha } - fn auth_sig(&mut self, i: usize) -> Option { - self.spend_params[i].auth_sig - } - - fn proof_generation_key(&mut self, i: usize) -> Option { - self.spend_params[i].proof_generation_key.clone() - } - fn convert_rcv(&mut self, i: usize) -> jubjub::Fr { self.convert_params[i].rcv } @@ -402,14 +384,6 @@ impl BuildParams for RngBuildParams { self.spend_params(i).alpha } - fn auth_sig(&mut self, i: usize) -> Option { - self.spend_params(i).auth_sig - } - - fn proof_generation_key(&mut self, i: usize) -> Option { - self.spend_params(i).proof_generation_key.clone() - } - fn convert_rcv(&mut self, i: usize) -> jubjub::Fr { self.convert_params(i).rcv }