Skip to content
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

Include contents of x25515chacha20poly1305 repo in entropy-protocol #563

Merged
merged 17 commits into from
Jan 5, 2024

Conversation

ameba23
Copy link
Contributor

@ameba23 ameba23 commented Dec 14, 2023

This makes the contents of x25519-chacha20poly1305: SignedMessage and derive_static_secret, as well as the wasm bindings sign_and_encrypt etc, be part of the entropy-protocol crate.

This means we have one less crate to manage (and publish). But at the expense of making entropy-protocol more complex.

Once doing this i took the opportunity to change the JS function names to camelCase. This is not considered a breaking change in the changelog, since this API is new here and the other crate still exists.

Copy link

vercel bot commented Dec 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
entropy-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 5, 2024 9:11am

@ameba23 ameba23 marked this pull request as draft December 14, 2023 10:31
@@ -6,48 +6,48 @@ const protocol = require('entropy-protocol')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The edits to this file are from an automated code formatter (standard). This is not related to this PR, but since i put the other JS test through the formatter i thought to be consistent i should do this one as well.

I don't have any particular reason to choose standard, i just had to pick something.

@@ -0,0 +1,43 @@
const protocol = require('entropy-protocol')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test isn't just copied over - I added some things. You can see the old test here: https://github.com/entropyxyz/x25519-chacha20poly1305/blob/main/example/test.ts

@@ -21,6 +21,7 @@ At the moment this project **does not** adhere to

### Added
- Test CLI which calls the same code as in integration tests ([#417](https://github.com/entropyxyz/entropy-core/pull/417))
- Include contents of x25515chacha20poly1305 repo in entropy-protocol ([#563](https://github.com/entropyxyz/entropy-core/pull/563))
Copy link
Member

Choose a reason for hiding this comment

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

probably should add the camel case thing to breaking

@ameba23 ameba23 merged commit ad858b2 into master Jan 5, 2024
10 checks passed
@ameba23 ameba23 deleted the peg/unify-x25519 branch January 5, 2024 09:17
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