-
Notifications
You must be signed in to change notification settings - Fork 486
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
Fix encode bug+reduce type sized #3136
Fix encode bug+reduce type sized #3136
Conversation
@@ -307,20 +307,18 @@ func (stub *txGroupsEncodingStub) finishDeconstructTxnHeader() { | |||
|
|||
func (stub *txGroupsEncodingStub) deconstructKeyregTxnFields(i int, txn *transactions.SignedTxn) { | |||
bitmaskLen := bytesNeededBitmask(int(stub.TotalTransactionsCount)) | |||
if !txn.Txn.VotePK.MsgIsZero() || !txn.Txn.SelectionPK.MsgIsZero() || txn.Txn.VoteKeyDilution != 0 { | |||
if !txn.Txn.VotePK.MsgIsZero() || !txn.Txn.SelectionPK.MsgIsZero() || ((txn.Txn.StateProofPK.Root) != [merklekeystore.KeyStoreRootSize]byte{}) || txn.Txn.VoteKeyDilution != 0 { |
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.
I think that in this particular case, this one is safe during protocol upgrades, right ?
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.
I agree. this only checks that if some of the keys are not zeroed we need to allocate space
e471283
to
c32ffff
Compare
Codecov Report
@@ Coverage Diff @@
## feature/dilithium-scheme-integration #3136 +/- ##
========================================================================
+ Coverage 43.51% 43.58% +0.07%
========================================================================
Files 402 402
Lines 90345 90506 +161
========================================================================
+ Hits 39315 39451 +136
- Misses 44686 44715 +29
+ Partials 6344 6340 -4
Continue to review full report at Codecov.
|
6a72fc7
to
969f334
Compare
8837d8c
to
97195a8
Compare
97195a8
to
7ee0c1a
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.
Looks good. I have a few comments and questions, but that can be done later.
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.
Excellent. Thanks for the updates.
Summary
Test Plan