Skip to content
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

Some inconsistencies with Share.GetRange RPC #3719

Open
zvolin opened this issue Sep 9, 2024 · 0 comments
Open

Some inconsistencies with Share.GetRange RPC #3719

zvolin opened this issue Sep 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working external Issues created by non node team members

Comments

@zvolin
Copy link

zvolin commented Sep 9, 2024

Celestia Node version

0.15

OS

Install tools

No response

Others

No response

Steps to reproduce it

Hey, when integrating Share.GetRange API I found some potential inconsistencies / inefficiencies:

  • the naming conventions are mixed, the first layer is named using PascalCase but everything inside is snake_case
  • row roots in RowProof are serialized as hex, where everywhere else they are base64
  • the ShareProof uses celestia-core NMTProof proto, where everything else uses nmt proof proto
  • the shares are returned twice, in the Shares field and in the Proof.data field. This doubles the amount of information transmitted
  • the proof verification is completely disjoint from the shares itself. Proof is self contained thus user needs to remember to additionally compare returned Shares with the ones proven in proof

Expected result

some of those should probably be split into separate issues, but wanted to check if you aware of those and consider them being actual issues

Actual result

Relevant log output

No response

Is the node "stuck"? Has it stopped syncing?

No response

Notes

No response

@zvolin zvolin added the bug Something isn't working label Sep 9, 2024
@github-actions github-actions bot added the external Issues created by non node team members label Sep 9, 2024
@renaynay renaynay assigned renaynay and vgonkivs and unassigned renaynay Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external Issues created by non node team members
Projects
None yet
Development

No branches or pull requests

3 participants