-
-
Notifications
You must be signed in to change notification settings - Fork 162
Cryptographic chat support #303
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
Open
guac42
wants to merge
44
commits into
valence-rs:main
Choose a base branch
from
guac42:crypto-chat
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 32 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
c4bb15e
Initial
guac42 0611240
Working chat verification
guac42 bba93bf
Complete working example
guac42 73cde63
Merge branch 'main' into crypto-chat
guac42 3b4f3a0
Fix merge conflicts
guac42 f5b59db
Formatting
guac42 a3eb7f7
Move public key to assets
guac42 051a18a
Create secure_chat plugin
guac42 e9c4a04
Merge branch 'main' into crypto-chat
guac42 649842b
Fix merge conflicts
guac42 6b81ba3
Formatting
guac42 e3152f5
Merge branch 'main' into pr/303
guac42 08699f5
Fix merge conflicts
guac42 a3ee16c
Merge remote-tracking branch 'upstream/main' into crypto-chat
guac42 6fe20f9
Fix merge conflicts
guac42 bc0fd64
Fix conflict in chat example
guac42 82ade5f
Cleanup
guac42 15f7d06
More cleanup
guac42 a6d6889
Fixed bug
guac42 089b141
Merge remote-tracking branch 'upstream/main' into crypto-chat
guac42 dfc5278
Fix merge conflicts
guac42 3c943ba
Correct severity of debug output
guac42 39cf110
Merge remote-tracking branch 'upstream/main' into crypto-chat
guac42 7e46176
Minor changes
guac42 59391ef
Transfer
guac42 33b5bdc
Merge remote-tracking branch 'upstream/main' into crypto-chat
guac42 87ec95b
Remove old files
guac42 36df78a
Major refactoring
guac42 919d06d
Merge branch 'crypto-chat' of https://github.com/guac42/valence into …
guac42 803e594
Run fmt
guac42 126dedf
Cleanup checks
guac42 7beed3a
More cleanup
guac42 bbdfa6f
Add commands to message chain
guac42 832d654
Fix typo
guac42 2504e28
Merge branch 'valence-rs:main' into crypto-chat
guac42 42f594a
Merge branch 'main' into crypto-chat
guac42 db540c7
Update depgraph.svg
guac42 38fa403
Fix depgraph.svg
guac42 fd68c07
Merge branch 'main' into crypto-chat
guac42 f0145f0
Update depgraph.svg
guac42 d42af9f
Fix parse error checking
guac42 6d6d7b1
Merge branch 'main' into crypto-chat
guac42 83da57c
Update command.rs
guac42 7ac1f2b
Add message parser
guac42 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| [package] | ||
| name = "valence_chat" | ||
| version.workspace = true | ||
| edition.workspace = true | ||
|
|
||
| [features] | ||
| secure = ["dep:rsa", "dep:rustc-hash", "dep:sha1", "dep:sha2"] | ||
|
|
||
| [dependencies] | ||
| anyhow.workspace = true | ||
| bevy_app.workspace = true | ||
| bevy_ecs.workspace = true | ||
| rsa = { workspace = true, optional = true } | ||
| rustc-hash = { workspace = true, optional = true } | ||
| sha1 = { workspace = true, features = ["oid"], optional = true } | ||
| sha2 = { workspace = true, features = ["oid"], optional = true } | ||
| tracing.workspace = true | ||
| uuid.workspace = true | ||
| valence_lang.workspace = true | ||
| valence_nbt.workspace = true | ||
| valence_player_list.workspace = true | ||
| valence_protocol.workspace = true | ||
| valence_registry.workspace = true | ||
| valence_server.workspace = true | ||
| valence_server_common.workspace = true | ||
| valence_text.workspace = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # valence_chat | ||
|
|
||
| Provides support for cryptographically verified chat messaging on the server. | ||
|
|
||
| This crate contains the secure chat plugin as well as chat types and the chat type registry. Minecraft's default chat types are added to the registry by default. Chat types contain information about how chat is styled, such as the chat color. | ||
|
|
||
|
|
||
| This crate also contains the `yggdrasil_session_pubkey.der` file which is an encoded format of Mojang's public key. This is necessary to verify the integrity of our clients' public session key, which is used for validating chat messages. In reality Mojang's key should never change in order to maintain backwards compatibility with older versions, but if it does it can be extracted from any minecraft server jar. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.