From 29cff9683cdf2f0c522ff3224081dfb4fbc80248 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sat, 7 Dec 2024 11:00:45 +0000 Subject: [PATCH] pczt: Store proof generation key for dummy spends --- src/builder.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/builder.rs b/src/builder.rs index 7c52531..91a6cd4 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -330,7 +330,10 @@ impl PreparedSpendInfo { value: Some(self.note.value()), rseed: Some(*self.note.rseed()), rcv: Some(self.rcv), - proof_generation_key: None, + proof_generation_key: self + .dummy_expsk + .as_ref() + .map(|expsk| expsk.proof_generation_key()), witness: Some(self.merkle_path), alpha: Some(alpha), zip32_derivation: None,