You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Receiver privacy | Decoys - offer limited privacy, since it depends a lot on how you choose decoys. There’s probably no way to select decoys effectively enough, and thus it only makes it a bit harder but effectively doesn’t provide receiver privacy to a sophisticated long-term attacker | Some sort of bucketing? - still no clear path forward| ORAM? - still no clear path forward |
101
101
| Transfer amount privacy - subtractions (Transfer/Send/Burn) | None | None | Merkle proofs for storage reads - will make it very difficult to simulate transactions and play with storage. |
102
+
103
+
# SNIP 25 Other Updates
104
+
105
+
## All Allowances
106
+
Adds the ability for an owner to query for all allowances they have given out, as well as for a spender to query for all allowances they have received.
107
+
108
+
## Queries
109
+
110
+
### AllowancesGiven
111
+
112
+
This query MUST be authenticated.
113
+
114
+
Returns the list of allowances given out by the current account as an owner, as well as the total count of allowances given out.
115
+
116
+
Results SHOULD be paginated. Results MUST be sorted in reverse chronological order by the datetime at which the allowance was first created (i.e., order is not determined by expiration, nor by last modified).
117
+
118
+
#### Request
119
+
120
+
| Name | Type | Description | optional |
121
+
| ---- | ---- | ----------- | -------- |
122
+
|[with_permit].query.allowances_given.owner | string | Account from which tokens are allowed to be taken | no |
123
+
|[with_permit].query.allowances_given.page_size | number | Number of allowances to return, starting from the latest. i.e. n=1 will return only the latest allowance | no |
124
+
|[with_permit].query.allowances_given.page | number | Defaults to 0. Specifying a positive number will skip page * page_size txs from the start. | yes |
125
+
126
+
#### Response
127
+
```json
128
+
{
129
+
"allowances_given": {
130
+
"owner": "<address>",
131
+
"allowances": [
132
+
{
133
+
"spender": "<address>",
134
+
"allowance": "Uint128",
135
+
"expiration": 1234,
136
+
},
137
+
{ "...": "..." }
138
+
],
139
+
"count": 200
140
+
}
141
+
}
142
+
```
143
+
144
+
### AllowancesReceived
145
+
146
+
This query MUST be authenticated.
147
+
148
+
Returns the list of allowances given to the current account as a spender, as well as the total count of allowances received.
149
+
150
+
Results SHOULD be paginated. Results MUST be sorted in reverse chronological order by the datetime at which the allowance was first created (i.e., order is not determined by expiration).
151
+
152
+
#### Request
153
+
154
+
| Name | Type | Description | optional |
155
+
| ---- | ---- | ----------- | -------- |
156
+
|[with_permit.]query.allowances_received.spender | string | Account which is allowed to spend tokens on behalf of the owner | no |
157
+
|[with_permit.]query.allowances_received.page_size | number | Number of allowances to return, starting from the latest. i.e. n=1 will return only the latest allowance | no |
158
+
|[with_permit.]query.allowances_received.page | number | Defaults to 0. Specifying a positive number will skip page * page_size txs from the start. | yes |
0 commit comments