Skip to content

checksum last seen messages in acknowledgement order - #1521

Open
Pix3lPirat3 wants to merge 2 commits into
PrismarineJS:masterfrom
Pix3lPirat3:fix/chat-checksum-rotation
Open

checksum last seen messages in acknowledgement order#1521
Pix3lPirat3 wants to merge 2 commits into
PrismarineJS:masterfrom
Pix3lPirat3:fix/chat-checksum-rotation

Conversation

@Pix3lPirat3

Copy link
Copy Markdown

Use the circular buffer's logical traversal for both acknowledgement bits and the checksum so wrapped chat histories stay synchronized with the server.

Use the circular buffer's logical traversal for both acknowledgement bits and
the checksum so wrapped chat histories stay synchronized with the server.

@extremeheat extremeheat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool, did you test against the server side impl also? We implement both sides

Comment thread test/chatAcknowledgementTest.js
…t logic

added a loopback integration test using node-minecraft-protocol's real server and client. It rotates the 20-message history, sends a standalone acknowledgement, verifies that a correctly checksummed/signed message is accepted, then changes only the next checksum and verifies that the server rejects it.
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.

2 participants