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

#6 Consume feature of recrypt to work for 32 bit backend ed25519. Update all dependencies and fix various fallout from it #12

Merged
merged 4 commits into from
Jul 16, 2019

Conversation

ernieturner
Copy link
Contributor

  • Upgrade Travis to use Rust 1.36
  • Consume new feature of recrypt to use ed25519 32 bit backend
  • Update depdendencies
    • A number of changes in the wasm-bindgen code forced us to modify our JS shims

Copy link
Contributor

@clintfred clintfred left a comment

Choose a reason for hiding this comment

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

Did you add some additional functionality to the binding here as well?

return {
privateKey: new Uint8Array(privateKey),
publicKey: new Uint8Array(publicKey),
};
}

/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the following 4 functions new functionality for the binding?

Copy link
Contributor Author

@ernieturner ernieturner Jul 16, 2019

Choose a reason for hiding this comment

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

They are not. Previously this class just extended the underlying WASM-generated class (change on line 61 above) and these methods just called directly through to the auto-generated code. But because of some changes to the auto-generated code from wasm-bindgen extending the class is no longer possible. So instead I had to write passthrough wrappers for these functions.

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense. Thanks for the explanation!

lib/Api256Shim.ts Show resolved Hide resolved
lib/Api256Shim.ts Show resolved Hide resolved
@ernieturner ernieturner merged commit 67e4726 into master Jul 16, 2019
@ernieturner ernieturner deleted the depUpdates branch July 16, 2019 20:10
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