-
Notifications
You must be signed in to change notification settings - Fork 5
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
contract data availability proofs & updated types & bug fixes #24
Conversation
This informs the all event listeners of "new-epoch" that a new epoch has started and includes the hive block number, epoch number, net id, and the new witness set
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.
Looks good overall. Just a few comments
src/services/new/fileUploadManger.ts
Outdated
type: 'proof' | ||
data: string | ||
signature: { sig: string; bv: string } | ||
epochDefinitionHiveBlock: number // just some metadata for the client to aid verification |
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.
Simplify to epochHeight or just epoch is the convention I'm going for.
src/services/new/fileUploadManger.ts
Outdated
{ | ||
type: 'data-availablity', | ||
cid: respInfo.cid, | ||
}, | ||
{ onlyHash: true }, | ||
) |
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.
Why not sign the CID directly instead of adding this? Assuming it's the only thing we need to verify at the moment.
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.
Signing CID bytes doesn't indicate the intent of the signature. It could be a number of things. This way makes it clear this is for the data availability proof.
when merging please rebase instead of merging. the merge commit messes up the git history on my fork
see commit messages for detailed changes