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

Integrate Rust bindings as library #11

Merged
merged 17 commits into from
Jan 25, 2024
Merged

Integrate Rust bindings as library #11

merged 17 commits into from
Jan 25, 2024

Conversation

bisgardo
Copy link
Contributor

@bisgardo bisgardo commented Jan 23, 2024

Add Rust binding library ConcordiumWalletCrypto which implements the functions currently exposed in the ConcordiumHdWallet in the JavaScript SDK. The functions are made available from the SDK via ConcordiumHdWallet as well. The unit tests have been ported from the other SDK also.

The bindings are generated by UniFFI via cargo-swift. That tool was mainly helpful for setting up the structure of the project, it probably isn't really required for actually building the lib. As it's ability to compile seems a little flaky and because we might want to build fewer variants for the purpose of CI, it seems reasonable that we'd replace this dependency with a simple script that does the same thing.

Resolves https://concordium.atlassian.net/browse/CBW-1552.

@bisgardo bisgardo marked this pull request as ready for review January 24, 2024 14:55
README.md Outdated Show resolved Hide resolved
@bisgardo bisgardo merged commit 9dca818 into main Jan 25, 2024
1 check passed
@bisgardo bisgardo deleted the mo/rust-crypto branch January 25, 2024 14:16
Copy link
Contributor

@rh-concordium rh-concordium left a comment

Choose a reason for hiding this comment

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

Ship it 🚢

lib/crypto/.gitignore Show resolved Hide resolved
README.md Show resolved Hide resolved
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