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

Basic NIPST construction flow #714

Merged
merged 4 commits into from Mar 26, 2019

Conversation

Projects
None yet
2 participants
@moshababo
Copy link
Contributor

moshababo commented Mar 20, 2019

I implemented the basic flow, but was mainly focused on the documentation.
I tried to follow the terminology presented in the papers.

The test is very basic, and is used merely to verify that the package is getting compiled (it won't fail the build since no other package is consuming it yet).

@moshababo moshababo requested review from noamnelke and antonlerner Mar 20, 2019

@moshababo

This comment has been minimized.

Copy link
Contributor Author

moshababo commented Mar 20, 2019

I used the serialized format ([]byte) for most of the proof types, to allow easy hashing, but that will be changed later.

round, err := nb.poetProver.submitChallenge(poetChallenge, nb.duration)
if err != nil {
nb.errChan <- fmt.Errorf("failed to submit challenge to poet service: %v", err)
return

This comment has been minimized.

Copy link
@antonlerner

antonlerner Mar 21, 2019

Member

should we stop trying to submit a challenge if it fails once? this means that the NipstBuilder will stop all activity and someone will need to manage and restart it, is this the desired behaviour?

This comment has been minimized.

Copy link
@moshababo

moshababo Mar 24, 2019

Author Contributor

We obviously need a different retry mechanisms for different phases, and might introduce also manual actions, but that’s out of scope for this function. It will need to be handled by NIPSTBuilder client.
Now i’m focused mainly on the happy flow, but i’ll add the error handling once we’ll get the persistency and p2p integration working.

Show resolved Hide resolved nipst/nipst.go Outdated
type Space uint64

// PostProver provides proving functionality for PoST.
type PostProver interface {

This comment has been minimized.

Copy link
@antonlerner

antonlerner Mar 21, 2019

Member

I think these APIs should be exported eventually when we integrate this into the actual node flow

This comment has been minimized.

Copy link
@moshababo

moshababo Mar 24, 2019

Author Contributor

Since they are already public, do you mean to move them to a separate package?

moshababo added some commits Mar 24, 2019

@moshababo moshababo requested a review from antonlerner Mar 24, 2019

@moshababo moshababo merged commit f738efa into develop Mar 26, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@moshababo moshababo deleted the nipst branch Mar 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.