-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -6,48 +6,48 @@ const protocol = require('entropy-protocol') | |||
|
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.
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') |
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.
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)) |
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.
probably should add the camel case thing to breaking
This makes the contents of
x25519-chacha20poly1305
:SignedMessage
andderive_static_secret
, as well as the wasm bindingssign_and_encrypt
etc, be part of theentropy-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.