-
Notifications
You must be signed in to change notification settings - Fork 968
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
Shwap #2675
Shwap #2675
Conversation
42ad52e
to
2f99b52
Compare
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.
Codecov Report
@@ Coverage Diff @@
## main #2675 +/- ##
==========================================
+ Coverage 51.79% 52.02% +0.22%
==========================================
Files 163 173 +10
Lines 10854 11596 +742
==========================================
+ Hits 5622 6033 +411
- Misses 4738 4997 +259
- Partials 494 566 +72
|
8e0f0c2
to
f1de60a
Compare
share/eds/file.go
Outdated
return shr, nil | ||
} | ||
|
||
func (f *File) ShareWithProof(idx int, axis rsmt2d.Axis) (share.Share, nmt.Proof, error) { |
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.
[feature request]: Having AxisWithProof
will be super useful for search operations to retrieve all rows with their proofs and roots to be able to filter out for specific shares and their proofs by roots
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.
When you get the whole axis, there is no proof.
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.
I mean, if you look at ShareWithProof
, to generate a proof for that share, you have to get the whole axis, right? Retrieving an entire axis and recomputing its proof would be sufficient for the purposes I mentioned.
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.
a small feature request to make #2618 easier to implement
e804d2c
to
ba163cd
Compare
98d475b
to
e7ebbb1
Compare
Initial file size measurements
|
…ation method for ids
4b26aef
to
bbcd956
Compare
* Axis -> Row * It's not allowed anymore to request Columns * Delete AxisType from SampleID * Now server decides which Row or Column comittment to choose, not client * New SampleProofType field on Sample * Server's decision on the Sample proof response * Delete AxisHash from Row(Axis) * We break compatibility with Bitswap stateless Content Cerification and now verification has to be done with DAH
@@ -0,0 +1,26 @@ | |||
syntax = "proto3"; | |||
|
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.
package share.p2p.shwap; |
Or was package specifier ommited for some particular reason?
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.
It's not necessary from my understanding
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.
I don't think it's necessary, but other proto files specify the namespace so I expected this one too
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.
Ok. Also, note that the name of the pkg is more like an implementation detail. The formal spec won't contain the pkg name in its proto file.
I don't think it's necessary but other protobuf files specify the
namespace,so we expected this one too
…On Sun, 31 Dec 2023, 2:26 am Hlib Kanunnikov, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In share/shwap/pb/shwap_pb.proto
<#2675 (comment)>
:
> @@ -0,0 +1,26 @@
+syntax = "proto3";
+
It's not necessary from my understanding
—
Reply to this email directly, view it on GitHub
<#2675 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACF3U6BLASXRHTIRAXGG4KTYMC5LPAVCNFSM6AAAAAA4PNTBF2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOOJZGYYDCMJRGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
We merged #3675, so can close this one |
Prototype of the new storage for edses - edsfile and optimized roundtrip less ipldv2 protocol
TODO:
Support for Axis, Share and ShareWithProofVersioning and backwards compatibility with old protocolIPLDv2 Server over LN storage (blockservice)Will work as isStretch Goals: