Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
b73289ed
Unverified
Commit
b73289ed
authored
4 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
explain the *2
parent
42da9833
No related branches found
Branches containing commit
No related tags found
1 merge request
!155
Client-side two-phase spending protocol to reduce pass loss
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/_zkapauthorizer/tests/test_storage_client.py
+2
-0
2 additions, 0 deletions
src/_zkapauthorizer/tests/test_storage_client.py
with
2 additions
and
0 deletions
src/_zkapauthorizer/tests/test_storage_client.py
+
2
−
0
View file @
b73289ed
...
@@ -200,6 +200,8 @@ class CallWithPassesTests(TestCase):
...
@@ -200,6 +200,8 @@ class CallWithPassesTests(TestCase):
of passes, still of length ```num_passes``, but without the passes
of passes, still of length ```num_passes``, but without the passes
which were rejected on the first try.
which were rejected on the first try.
"""
"""
# Half of the passes are going to be rejected so make twice as many as
# the operation uses available.
passes
=
pass_factory
(
integer_passes
(
num_passes
*
2
))
passes
=
pass_factory
(
integer_passes
(
num_passes
*
2
))
def
reject_even_pass_values
(
group
):
def
reject_even_pass_values
(
group
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment