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

share: EDSStore.Get #1111

Closed
Tracked by #1099
Wondertan opened this issue Sep 15, 2022 · 0 comments · Fixed by #1232
Closed
Tracked by #1099

share: EDSStore.Get #1111

Wondertan opened this issue Sep 15, 2022 · 0 comments · Fixed by #1232
Assignees
Labels
area:shares Shares and samples

Comments

@Wondertan
Copy link
Member

Wondertan commented Sep 15, 2022

Context

To read an entire EDS Get method is introduced.

Implementation Details

Internally it:

  • Gets a serialized EDS io.Reader via EDSStore.GetCAR
  • Deserializes the EDS and validates it via share.ReadEDS
// Get reads EDS out of Store by given DataRoot.
// 
// It reads only one quadrant(1/4) of the EDS and verifies the integrity of the stored data by recomputing it.
func (s *EDSStore) Get(context.Context, DataRoot) (*rsmt2d.ExtendedDataSquare, error)

Refs

Depends on #1109
Depends on #1107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:shares Shares and samples
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants