-
Notifications
You must be signed in to change notification settings - Fork 0
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
Test/data availability and integrity #2
Conversation
- disperse_data - get_range
- add disperse_data
- use oneliner for volumes
- test_da_sampling_determines_data_presence
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.
left 2 comments
besides that, LGTM
from src.steps.da import StepsDataAvailability | ||
from src.test_data import DATA_TO_DISPERSE | ||
|
||
logger = get_custom_logger(__name__) |
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.
doesn't seem to be used
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.
Fixed at 2738c9e
# Use received blob data to reconstruct the original data | ||
# nomos-cli reconstruct command required | ||
reconstructed_data = [] | ||
assert DATA_TO_DISPERSE[0] == bytes(reconstructed_data).decode("utf-8") |
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.
but bytes(reconstructed_data).decode("utf-8")
is empty string and DATA_TO_DISPERSE[0] should be "Hello World!"
what are we asserting here?
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.
Yes, the nomos-cli should be called to reconstruct the data from received blobs. PR in nomos-node repo logos-co/nomos-node#994. I would assume nomos-cli as our "first to go" verification tool. We might think about being independent, with our own tooling, however this would come at certain cost. We can discuss more during meeting.
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, but now the assert will not pass, right?
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.
Tests skipped at b4d32df
PR Details
Set of tests to cover data availability and integrity.
Issues reported: