Просмотр исходного кода

money::transfer(): MoneyNote add TODO about removing value_blind and token_blind

zero 2 лет назад
Родитель
Сommit
43bdf5eab9
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/contract/money/src/client/mod.rs

+ 4 - 0
src/contract/money/src/client/mod.rs

@@ -118,10 +118,14 @@ pub struct MoneyNote {
     pub spend_hook: pallas::Base,
     /// User data used by protocol when spend hook is enabled
     pub user_data: pallas::Base,
+    // TODO: look into removing these fields. We potentially don't need them [
     /// Blinding factor for the value pedersen commitment
     pub value_blind: pallas::Scalar,
     /// Blinding factor for the token ID pedersen commitment
     pub token_blind: pallas::Base,
+    // ] ^ the receiver is not interested in the value commit / token commits.
+    // we just want to examine the coins in the outputs. The money::transfer() contract
+    // should ensure everything else is correct.
     /// Attached memo (arbitrary data)
     pub memo: Vec<u8>,
 }