This commit is contained in:
Rostyslav Tyshko 2025-04-04 15:23:19 -04:00
parent a9bd1a1a5c
commit 33934f1e05
2 changed files with 11 additions and 4 deletions

View File

@ -78,15 +78,21 @@ impl AddressKeyHolder {
pub fn log(&self) {
info!(
"Secret spending key is {:?}",
hex::encode(serde_json::to_vec(&self.top_secret_key_holder.secret_spending_key).unwrap()),
hex::encode(
serde_json::to_vec(&self.top_secret_key_holder.secret_spending_key).unwrap()
),
);
info!(
"Nulifier secret key is {:?}",
hex::encode(serde_json::to_vec(&self.utxo_secret_key_holder.nullifier_secret_key).unwrap()),
hex::encode(
serde_json::to_vec(&self.utxo_secret_key_holder.nullifier_secret_key).unwrap()
),
);
info!(
"Viewing secret key is {:?}",
hex::encode(serde_json::to_vec(&self.utxo_secret_key_holder.viewing_secret_key).unwrap()),
hex::encode(
serde_json::to_vec(&self.utxo_secret_key_holder.viewing_secret_key).unwrap()
),
);
info!(
"Nullifier public key is {:?}",

View File

@ -16,7 +16,8 @@ impl AccountPublicData {
viewing_public_key: Vec<u8>,
) -> Self {
Self {
nullifier_public_key: serde_json::from_slice::<AffinePoint>(&nullifier_public_key).unwrap(),
nullifier_public_key: serde_json::from_slice::<AffinePoint>(&nullifier_public_key)
.unwrap(),
viewing_public_key: serde_json::from_slice::<AffinePoint>(&viewing_public_key).unwrap(),
address,
}