Skip to content

Commit

Permalink
chore: cleanup renamings
Browse files Browse the repository at this point in the history
BREAKING CHANGE: PR makes encrypted ciphers public, thus obsoleting the sending of DBCs
  • Loading branch information
grumbach authored and joshuef committed Sep 12, 2023
1 parent c597196 commit f498812
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/dbc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
};

Expand All @@ -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(),
};

Expand Down Expand Up @@ -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(),
};

Expand Down

0 comments on commit f498812

Please sign in to comment.