-
Notifications
You must be signed in to change notification settings - Fork 841
MerkleDB -- Use Maybe for proof bounds
#1657
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
Closed
Closed
Changes from all commits
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
42ad6b6
WIP rewriting and testing range proof invariants
fbfcac5
WIP rewriting and testing range proof invariants
675b54e
appease linter
8146839
Merge remote-tracking branch 'upstream/dev' into merkledb-test-range-…
5cb9092
fix/remove TODOs
4f4bf1f
add if branch to prevent nil pointer panic
0b08de4
fix range proof verification
60729be
nits
4e1518e
nits
5efda97
make range proof invariant test into fuzzing test
158e5c3
Merge branch 'dev' into merkledb-test-range-proof-invariants
0ebe0da
Merge branch 'dev' into merkledb-test-range-proof-invariants
babd9a6
Merge branch 'dev' into merkledb-test-range-proof-invariants
622199a
nits
80e67d0
Merge branch 'merkledb-test-range-proof-invariants' of github.com:ava…
fa67360
comment nits
7e02d8c
WIP use Maybe for bounds
e813fc3
WIP use Maybe for bounds
c469d74
it compiles
712147d
fix todo
f1734b1
fix todo
6804f8c
fix test
98793ee
nits
5645e48
nits
222778f
fix inverted condition
c4dc815
add proto validation
02a9ae5
fix test
b4d7932
fix test and syncWorkHeap.MergeInsert
42dc875
appease linter
5cf991b
Merge remote-tracking branch 'upstream/dev' into merkledb-test-range-…
091f282
add test
fae5fad
Merge remote-tracking branch 'upstream/dev' into merkledb-test-range-…
0079566
Merge branch 'merkledb-test-range-proof-invariants' into merkledb-may…
089e65d
formatting
4d4cf7d
comments on completeWorkItem
ecae4aa
nit
00ce558
fix findNextKey by handling 0 length end proof
66707f7
add comment
69a4a0b
appease linter
7bbe562
comments
7d2f9c6
comments
026c6c4
comments
5f20adf
nits
6697168
nit
d3607bc
remove nil check
4aaae86
remove nil check for range proof requests
81f01a9
tweak test
bfa0286
tweak test
dfa03b6
comment
f51f79b
add Maybe.String()
43d797c
appease linter
937a375
comment
273c7b4
nits
de3ad8b
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
d5054d1
Merge remote-tracking branch 'upstream/dev' into merkledb-test-range-…
b61f9e0
Merge branch 'merkledb-test-range-proof-invariants' into merkledb-may…
75697fd
nit
99de404
nit
d702662
nits
2a49496
nit
85230ae
Improve `if` statement readability (#1664)
47269ee
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
0b45f4e
Merge branch 'merkledb-maybe-proof-bounds' of github.com:ava-labs/ava…
16c9920
Merge branch 'dev' into merkledb-maybe-proof-bounds
914dc47
Merge branch 'dev' into merkledb-maybe-proof-bounds
724d47e
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
4c353e1
Merge branch 'merkledb-maybe-proof-bounds' of github.com:ava-labs/ava…
a06bd82
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
ea98073
nit
277f112
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
25911b5
Merge branch 'dev' into merkledb-maybe-proof-bounds
2f31123
Merge branch 'dev' into merkledb-maybe-proof-bounds
StephenButtolph 961f0b9
fix end > start bound checks
fa4347f
IsNothing() --> not hasValue for consistency
e2b3baa
make largestKey a Maybe in VerifyChangeProof
6b3531d
parameterize midPoint on maybe
8390771
fix end > start bound checks
767b929
add comment
c4d5fbd
make start key in CommitRangeProof a Maybe
0a8f4e3
add equality function for Maybe[[]byte]
507a182
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
1533f85
make nextKey in findNextKey a Maybe
a3453ea
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
57bc445
make verifyKeyValues same as verifyKeyChanges
7c57683
Merge branch 'dev' into merkledb-maybe-proof-bounds
3a15f68
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
2591c2b
Merge branch 'merkledb-maybe-proof-bounds' of github.com:ava-labs/ava…
5bbe098
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
d732bc6
revert errant changes
d2da07f
unify style for start Maybe[[]byte], end Maybe[[]byte] params
5c934ca
fix comment
f708c34
add nil checks
c9b6bb4
Merge branch 'dev' into merkledb-maybe-proof-bounds
0129ce9
Merge branch 'dev' into merkledb-maybe-proof-bounds
2e1270a
Merge remote-tracking branch 'upstream/dev' into merkledb-maybe-proof…
df42980
Merge branch 'merkledb-maybe-proof-bounds' of github.com:ava-labs/ava…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: what does this look like when
!start.hasValueThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the empty path, which is what it was before this PR, because of the invariant on
value:If [hasValue] is false, [value] is the zero value of type T.