We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad1eb95 commit ce63376Copy full SHA for ce63376
wasm/src/ledger/transition.rs
@@ -176,6 +176,13 @@ impl Transition {
176
Group::from(self.0.tpk())
177
}
178
179
+ /// Get the transition view key of the transition.
180
+ pub fn tvk(&self, view_key: ViewKey) -> Field {
181
+ let tpk = self.tpk();
182
+ let tvk = tpk.scalar_multiply(&view_key.to_scalar()).to_x_coordinate();
183
+ tvk
184
+ }
185
+
186
/// Get the transition commitment of the transition.
187
pub fn tcm(&self) -> Field {
188
Field::from(self.0.tcm())
0 commit comments