|
@@ -224,18 +224,18 @@ impl Builder {
|
|
|
token_blind,
|
|
token_blind,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- //let encrypted_note = note::encrypt(¬e, &output.public)?;
|
|
|
|
|
|
|
+ let encrypted_note = note::encrypt(¬e, &output.public)?;
|
|
|
|
|
|
|
|
let output = Output {
|
|
let output = Output {
|
|
|
value_commit: revealed.value_commit,
|
|
value_commit: revealed.value_commit,
|
|
|
token_commit: revealed.token_commit,
|
|
token_commit: revealed.token_commit,
|
|
|
coin: revealed.coin.0,
|
|
coin: revealed.coin.0,
|
|
|
|
|
+ ciphertext: encrypted_note.ciphertext,
|
|
|
|
|
+ ephem_public: encrypted_note.ephem_public,
|
|
|
};
|
|
};
|
|
|
outputs.push(output);
|
|
outputs.push(output);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //let call_data = CallData { clear_inputs, inputs, outputs };
|
|
|
|
|
-
|
|
|
|
|
Ok((MoneyTransferParams {
|
|
Ok((MoneyTransferParams {
|
|
|
clear_inputs, inputs, outputs
|
|
clear_inputs, inputs, outputs
|
|
|
}, proofs))
|
|
}, proofs))
|