@@ -187,9 +187,10 @@ amount. Specifically, a transaction fee is determined by two paramters:
187
187
the fee rate of 1%, and ` bp = 10000 ` represents the fee rate of 100%.
188
188
189
189
- ` max_fee ` : the max fee rate. A transfer fee is calculated using the fee rate
190
- that is determined by ` bp ` , but it is capped by ` max_fee ` .
190
+ that is determined by ` bp ` , but it is capped by ` max_fee ` .
191
191
192
192
For example, consider a transfer amount of 200 tokens.
193
+
193
194
- For fee parameter ` bp = 100 ` and ` max_fee = 3 ` , the fee is simply 1% of the
194
195
transfer amount, which is 2.
195
196
- For fee parameter ` bp = 200 ` and ` max_fee = 3 ` , the fee is 3 since 2% of 200
@@ -221,7 +222,7 @@ The actual amount of a transfer fee cannot be included in the confidential
221
222
extension ` TransferWithFee ` instruction in the clear since the transfer amount
222
223
can be inferred from the fee. Therefore, in the confidential extension, the
223
224
transfer fee is encrypted under the destination and withheld authority ElGamal
224
- public key.
225
+ public key.
225
226
226
227
``` rust
227
228
struct FeeEncryption {
@@ -264,11 +265,22 @@ We refer to the proof specifications below for the additional details.
264
265
265
266
## Sigma Protocols
266
267
267
- ### Validity Proof
268
+ ### (Public-key) Validity Proof
268
269
269
- A validity proof certifies that a twisted ElGamal ciphertext is a well-formed
270
- ciphertext. The precise description of the system is specified in the following
271
- notes.
270
+ A public-key validity proof certifies that a twisted ElGamal public-key is a
271
+ well-formed public key. The precise description of the system is specified in
272
+ the following notes.
273
+
274
+ [[ Notes]] ( ./pubkey_proof.pdf )
275
+
276
+ The public-key validity proof is required for the ` ConfigureAccount `
277
+ instruction.
278
+
279
+ ### (Ciphertext) Validity Proof
280
+
281
+ A ciphertext validity proof certifies that a twisted ElGamal ciphertext is a
282
+ well-formed ciphertext. The precise description of the system is specified in
283
+ the following notes.
272
284
273
285
[[ Notes]] ( ./validity_proof.pdf )
274
286
0 commit comments