Skip to content

Conversation

@AeonSw4n
Copy link
Contributor

No description provided.

@AeonSw4n AeonSw4n marked this pull request as ready for review July 13, 2022 09:17
@AeonSw4n AeonSw4n requested a review from a team as a code owner July 13, 2022 09:17
Copy link
Member

@lazynina lazynina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, just think some additional comments to clarify these changes would be helpful for future maintenance.

Also, please fix gofmt issues. you can run gofmt -s -w . to run gofmt and have it resolve any fmting issues

AeonSw4n and others added 8 commits August 12, 2022 01:32
* Add public key recovery for derived keys

* Review round
* added MuteList to MessagingGroupEntry struct

* added TxnType validation in _connectMessagingGroup()

* added MuteList to MessagingGroupEntry (for txns adding new members)

* added muting and unmuting mechanism to _connectMessagingGroup()

* added MuteList to RawEncodeWithoutMetadata

* added MuteList to RawDecodeWithoutMetadata

* moved MuteList to end of MessagingGroupEntry for backwards compatibility

* added clarifying comment for MuteList

* corrected typo

* added MuteList to memberGroupEntry HACK

* changed iii to ii

* added RuleErrorMessagingMemberMuted

* major muting code added (needs cleanup)

* cleanup comments

* fixed for loop error

* deleted unused inline func

* added TODO for making MuteList retrieval more efficient

* fixed test typo

* commented out MuteList from hacked memberGroupEntry for now

* go.mod random change

* fixed bug

* fixed all pre-testing bugs

* FIXED ALL BUGS AND ADDED TESTS

* cleaned up comments

* 33rd waking hour and counting...

* added helpful comment

* fixed unmuting bug

* added unmuting tests and all successful

* code cleanup

* added MessagingGroupOperationMute and MessagingGroupOperationUnmute constants

* replaced more constants

* replaced more constants

* fixed deepEqual to compare byte slices and NOT PublicKeys

* fixed deepEqual to compare byte slices and NOT PublicKeys AGAIN

* added gated condition to have sender and recipient in ExtraData

* added comment

* removed code from _disconnectMessagingGroup

* added blockheight gating for messages muting

* fixed existingEntry.MuteList deep copy bug

* added encoder migration for DeSoV3MessagesMutingMigration

* fixed HUGE testnet bug and migration bug

* fixed muting code positioning

* fixed deep copy bug

* fixed extradata operationtype bug

* fixed redundant if condition

* made constant for MessagingGroupOperationType

* moved contains()

* throwing errors when muting already muted member or unmuting already unmuted member

* made concise

* removed comment

* added super helpful comment

* temporarily changed migration version to pass tests

* FIXED MAJOR ENCODE DECODE BUG

* added hacked entry optimization; fixed txn.PublicKey bug

* removed comment

* changed optimization comment

* added prefix deprecation and replacement code

* added more Deprecation code

* refactored db_utils funcs and created new OptimizedMessagingGroupEntry using better prefix key structure

* fixed refactoring bug; added more tests for muting while blockheight below threshold

* fixed new prefix name

* fixed 2 nits

* cleaned up 'contains' code

* added test; fixed deep equal bug

* added additional unmute test

* fixed deep equal nit

* fixed problematic loop; added test; added RuleError

* added code for groupowner not allowed to mute/unmute herself

* fixed conditional dup; added extra data merging

* deduplicated utxoOpsForTxn

* changed comment

* fixed comment grammar

* added enlightening comments

* added groupowner sender to ganggang in tests

* [stable] Release 2.2.6

* Fix IsNodeArchival flag to include SyncTypeBlockSync

This was causing nodes to reject other nodes as sync peers when they
have --sync-type=blocksync but --hypersync=false even though these nodes
are valid sync peers.

* Simplify connect logic; start making hacked member prefix more user-friendly

* Testing

* More thorough testing

* Temporary fix for newly-added state prefix

* Another fix

* fix encoding

* One more pass

* small rename

* another pass

* Fix txindex and gofmt

* Rename fork height

* Nina review round

* Fix nil utxoview fetch

Co-authored-by: Keshav Maheshwari <km02@bu.edu>
Co-authored-by: lazynina <lazynina84@gmail.com>
Co-authored-by: diamondhands <diamondhands@bitcloutdev.com>
@AeonSw4n AeonSw4n changed the title Metamask-compatible access bytes encoding Metamask and group chat muting Sep 6, 2022
@AeonSw4n AeonSw4n changed the title Metamask and group chat muting Recoverable signatures, Metamask access bytes, unlimited derived keys, group chat muting Sep 6, 2022
diamondhands0 and others added 2 commits September 10, 2022 01:20
* Refactor message updates

* Rename migration

* gofmt...

* filter out deleted entries

* Remove sig validation for default key registration (#399)

* Remove sig validation for default key registration

* Comment out test that requires errors for bad sig for default key

* use fork height to remove check on default key registration validation

* Remove rogue new line

* Fix isDeleted

* Add comment

* Add txn type check

Co-authored-by: Lazy Nina <81658138+lazynina@users.noreply.github.com>
@AeonSw4n AeonSw4n changed the title Recoverable signatures, Metamask access bytes, unlimited derived keys, group chat muting Recoverable signatures, Metamask access bytes, unlimited derived keys Sep 12, 2022
@lazynina lazynina merged commit ca20418 into main Sep 12, 2022
@lazynina lazynina deleted the p/spending-limits-metamask-string branch September 12, 2022 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants