-
Notifications
You must be signed in to change notification settings - Fork 11
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
Refactor of batching stores and APIs #420
Conversation
c2200ab
to
748536b
Compare
// Secp256k1Entry is the secp256k1 signature component of a validator | ||
// tree entry. | ||
message Secp256k1Entry { | ||
bytes eth_address = 1; |
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.
It doesn't have to be an eth address right? Could be any evm network, and even then I don't think it's limited to only evm networks.
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.
Right but I think we will have to create a new struct every time we add a new signature scheme
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.
Would make more sense to have this labeled with the scheme then? Since different chains could use the same scheme.
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.
eth_address
means more like ethereum-style address format. So different chains could still use this if they use this address format.
d4daf96
to
dab8255
Compare
dab8255
to
74b8395
Compare
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.
Should we not also remove the batching params key?
Ah yes I will remove it before I merge this PR |
Motivation
Merge batch signature store with validator tree entry storenil
if a batch has not been assigned to a data result)Explanation of Changes
There is no longer a separate query endpoint for batch signatures or tree entries. To obtain them, query the corresponding batch instead:
To query the latest batch whose signatures have been collected, make the same query without any arguments.
List of batches in the store can now be queried with the flag
--with-unsigned
to include new batches without signatures.Also note that validator tree entries are now stored separately from data result tree entries in a struct:
Store schema:
Related PRs and Issues
Closes #423