-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Updating SDK initialization #1
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
jurevans
wants to merge
9
commits into
main
Choose a base branch
from
feat/refactor-wasm-loading
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.
+12,242
−4,244
Conversation
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
9bdffd3
to
8c81462
Compare
2dd3dc6
to
1281430
Compare
cd21d60
to
ab44d89
Compare
ab44d89
to
4cd0bb5
Compare
jurevans
commented
May 21, 2025
@@ -169,7 +169,7 @@ mod tests { | |||
#[wasm_bindgen_test] | |||
fn can_verify_stored_hash() { | |||
let password = "unhackable"; | |||
let argon2 = Argon2::new(password.into(), None, None) | |||
let argon2 = Argon2::new(password.into(), None, Some(Argon2Params::new(4096, 3, 1))) |
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.
default params in Argon2 lib have changed, so I made these explicit to pass
7156a7c
to
5af54ba
Compare
3ab43b4
to
a62d569
Compare
2 tasks
5ea2c25
to
40eb173
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
NOTE this also incorporates changes from the following (since the opening of this PR):
After much experimenting and testing, and considering all of the variants of the SDK developers may require, I think we should split up the various target builds into separate published packages. The repo could look like the following:
The public packages having their own
package.json
and implementation ofinitSdk()
specific to the target will greatly simplify the packaging, as each published package will essentially be the same structure, only with the changes needed to support that particular build. Doing this means that developers only need to install one SDK build depending on their needs instead of all.Packages published to NPM
@namada/sdk
@namada/sdk-multicore
- I think with some craftiness this could be combined with the normal web SDK, however, it means we publish with two builds, and types would need to be refactored a bit to account for this. Might be more trouble than it's worth right now@namada/sdk-node
Splitting these up will allow us to publish incrementally as each one is tested.