-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Removing usage of sequence in SignatureV2 #8308
Comments
Are you proposing:
If you're proposing 1, then it's a huge client-breaking change. I would advocate against. Initially sequence was not in SignatureV2 (or equivalently, in proto-language, in SignerInfo), then it was decided to be added in #6966 If you're proposing 2, then it seems to me that the conversion SignerInfo->SignatureV2 would lead to loss of information (the |
Why? The |
I agree 1 is something we can't afford at this point of time and my proposal was about 2. Looks like we have come a full circle. With respect to fetching the sequence from sign_bytes, I don't think it's straight forward(as sequence is part of authinfo) but will take a look to see if we can do this. |
Could you point to a related code for the following issue:
Removing |
Maybe |
we introduced a unordered tx type that would allow this to work from my understanding |
Summary
The current implementation of signatureV2 requires having the correct sequence value set, which can be relaxed to promote a more friendly ux
Problem Definition
Using sequence to set the signature needs us to query the node for sequence value even after we have the signature and sign bytes.
This is also causing us issues in rosetta where the construction combine endpoint has sign bytes and signature but still needs to query the node to fetch the sequence value. This prevents from using current rosetta workflow from working in a complete offline mode.
Is it possible to eliminate use of sequence here, would like to discuss the consequences this change has.
cc\ @alessio @aaronc
Proposal
For Admin Use
The text was updated successfully, but these errors were encountered: