-
Notifications
You must be signed in to change notification settings - Fork 25
Shielded AccessControl #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
323b66f
00efb15
81ebb9f
c5417c1
db5821f
98c86db
b556fad
a880f8d
de69018
92b46a8
9fc5bbe
98b7a32
ae9e311
4a9885b
6fb3f74
6161001
2ac92b5
db87258
9d78542
96f95c9
c16cd7d
3586158
33148b0
71ad93f
d707d28
e018e03
d113802
b3a0bd4
f3e2872
7b57e93
822fcd6
1c36f67
c676fd0
0cd3c59
06f3c83
8e28bda
9b3e97c
35d95d3
490af83
018ba5c
12a06c7
1b55a09
8e5dd6b
b100b9e
15aff68
524dab9
7ba770d
a3e6a3a
a22ba6c
37bb7aa
02227ab
b584c53
418a7b5
bd18c19
acf3397
8489924
67972b9
f23e56a
efaa2a0
be5b418
a902206
7ad70e6
eb3d4bc
32a80ff
365b7fd
e48e6b8
c16a6be
5882005
9117fc6
e77d127
0c33611
e3cb30d
95821e0
52000a2
3af7b9a
8d23061
47f5d3e
c607923
dc5aed7
4140f3b
67f36aa
99fa0be
4b1ff86
9a735b2
2f375ba
a5a1763
353b379
1fa7122
26d3576
da274c4
7ae6407
5a1b0b4
923d779
07dd40b
fdcf13c
b08a600
7e6a6a0
8e5c26f
dd0cd82
f24eeb0
2cb227e
061ac4a
a98144e
9d9c256
52936ef
5d2da06
713d3d4
8a5fbba
2fce76c
306ec1f
2fb86e7
a2e644d
16928c3
740bb83
a6feeff
ccdbe85
7df0378
a6f0eaa
dc5001f
5a817c9
88355c8
266e0fd
efdf636
1186e51
e819d8d
1b59084
aef1ed3
1f3349d
d4f6b8d
e67fc4a
01153f0
1a3bb3d
bf99e94
16b0ecd
5ddbe1e
f91d346
b541593
13d142c
a5268f6
6a4d55e
82170b8
f3279b4
0be3e5c
5c67ac8
9601c4d
8053d17
287f7bb
8aedd88
d80091b
d3fa7f7
3a016b1
3bb9e4c
e3cf7e9
1c5f803
8d9713a
ae13104
ecbe0da
a34d7f5
d081342
dc8b522
154938e
c7b3d2a
3cfa7af
a5fe6d1
ac33519
12818f8
e5b402d
a10b9bb
09e4a21
813fa99
36a6d0a
f2ee664
1a74761
67b85d1
8fefb4e
e8ba943
81002bf
d67a369
7546ffd
5f654fc
ac1077a
bec51ca
4757096
187f23f
593bcc0
b775993
4e59f2b
196843e
036c66c
1900f04
fcb9a16
fbe1df8
80dd34d
d38c6dc
1b6c2a5
819c821
15a113b
8f536e0
452c2d9
d989f34
ac4853d
c7d06c0
7e27f80
7ea82e9
c74f42f
f802a54
bcb4ce1
1b4f5c3
72ed9a5
bbbdba9
9ed5fec
85c71d9
bc2d635
dbdff4c
b407b7c
67b4753
6d6e064
7e5f144
e001b10
dc3737e
7c1427a
99b18c6
75e6dcb
72fa7b3
b2defa9
79ad5a3
944d251
9c86e1a
8c6ad6d
e7f5be1
bc1ded2
748ee62
a7566b1
d24eae9
7b2ef89
8c8ea72
c5b34f6
38b4696
cc56b39
dbc85f4
8a21058
7729e67
9bd47ea
28cc91e
ea50c07
9d7f148
00d521b
dcf6e7e
3c41f95
6c3f220
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
emnul marked this conversation as resolved.
Show resolved
Hide resolved
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you @emnul! Looking good! I have some points here and opened this refactor PR to fix them: #382
Supporting the two-argument overloads also required extracting
The refactor extracts
As mentioned above all of those points are resolved in the refactor PR.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-posting my thoughts from the PR introduced here:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you @emnul for the good points.
That's a fair point — As one motivation is to follow the Sol interface signature, another one is if there are scenarios where a batch API accepting arbitrary accounts could be useful. For example, an admin managing multiple operator keys (e.g., a DAO treasury) might want to grant/check/revoke roles for several accounts in a single circuit call rather than signing separately for each.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RE: 2b - we may have stumbled onto a disclosure bug in the Compact compiler. Check out this minimal-example I created (sorry for my spaghetti code 😅). If you scroll all the way to the bottom of test.compact you can see that the compiler definitely doesn't enforce a disclosure of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Totally agree, enabling batching would be it's own can of worms esp in the ZK context where everything must be deterministic.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sooooo I think it'd be nice to maintain the canonical API because it's familiar and we're not reinventing the wheel. That said, the changed circuit names AFAICT do better reflect the behavior and I agree that the assumptions and behaviors are different. If we stick with the og naming, it borders on being misleading for the sake of familiarity IMO. Taking a good faith perspective, the changed names sort of signal that some circuits are different from the expectation (hopefully further incentivizing users to read the docs) Note also that the sol impl isn't a ratified standard like EIP20 so we're not breaking a standardized spec (even though following EIPs in this network is not always the best thing)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm not suggesting we create a relationship between the types. I'm just curious on the benefit of having both. I assume we think API clarity is improved with having both?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'm not convinced there's a huge benefit to API clarity with AdminIdentifier so I removed it and replaced with another
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.