-
Notifications
You must be signed in to change notification settings - Fork 278
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
Require MsgWirePayForData
and MsgPayForData
txs to sign over all relevant square sizes to be considered valid
#620
Comments
I agree that these transactions need to sign over at least one message square to be considered valid. However it seems possible for there to be only one valid square size that a user signs over when the message they send can only fit in the largest possible square |
There being only one valid configuration isn't contradictory to "we could add a check to the ValidateBasic methods to ensure that all relevant shares are signed over." If it turns out there's only one, then them's the breaks. |
Sorry I don't understand what check needs to be added. Is this not sufficient? celestia-app/x/payment/types/wirepayfordata.go Lines 105 to 119 in 1fe223b
|
ideally we would have a function that determines all of the possible square sizes to sign over, not unlike celestia-app/x/payment/types/square_sizes.go Lines 24 to 41 in ff2d92a
so the extra check would check that these sizes are signed over related but separate is an optimized version of this from #236
|
Thanks for clarifying @adlerjohn @evan-forbes ! I understand now and think #666 should resolve this issue. |
Currently, someone can easily modify the code to not sign over any square sizes, or only sign over a single square size. Transaction with only a single singed square size will tend to get stuck in mempools, and txs with no signed over square sizes will get stuck in the mempool.
To prevent this, we could add a check to the
ValidateBasic
methods to ensure that all relevant shares are signed over. This will ensure thatWirePayForData
transactions do not get stuck in mempools.more info in relevant square sizes can be found in #236
The text was updated successfully, but these errors were encountered: