From f498812fe63c34689d2c851c5b45a7754f50338f Mon Sep 17 00:00:00 2001 From: grumbach Date: Tue, 12 Sep 2023 13:56:37 +0900 Subject: [PATCH] chore: cleanup renamings BREAKING CHANGE: PR makes encrypted ciphers public, thus obsoleting the sending of DBCs --- src/dbc.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dbc.rs b/src/dbc.rs index b5e32cd..a8f7915 100644 --- a/src/dbc.rs +++ b/src/dbc.rs @@ -216,11 +216,11 @@ pub(crate) mod tests { outputs: vec![Output::new(derived_key.dbc_id(), amount)], fee: FeeOutput::new(Hash::default(), 3_500, Hash::default()), }; - let ciphers = DbcSecrets::from((&main_key.public_address(), &derivation_index)); + let secrets = DbcSecrets::from((&main_key.public_address(), &derivation_index)); let dbc = Dbc { id: derived_key.dbc_id(), src_tx: tx, - secrets: ciphers, + secrets, signed_spends: Default::default(), }; @@ -247,11 +247,11 @@ pub(crate) mod tests { outputs: vec![Output::new(derived_key.dbc_id(), amount)], fee: FeeOutput::new(Hash::default(), 2_500, Hash::default()), }; - let ciphers = DbcSecrets::from((&main_key.public_address(), &derivation_index)); + let secrets = DbcSecrets::from((&main_key.public_address(), &derivation_index)); let dbc = Dbc { id: derived_key.dbc_id(), src_tx: tx, - secrets: ciphers, + secrets, signed_spends: Default::default(), }; @@ -303,11 +303,11 @@ pub(crate) mod tests { fee: FeeOutput::default(), }; - let ciphers = DbcSecrets::from((&main_key.public_address(), &derivation_index)); + let secrets = DbcSecrets::from((&main_key.public_address(), &derivation_index)); let dbc = Dbc { id: derived_key.dbc_id(), src_tx: tx, - secrets: ciphers, + secrets, signed_spends: Default::default(), };