Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Nov 11, 2024
1 parent a81d10b commit 6690332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/bitwarden-wasm-internal/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ cd ../../

if [ "$1" != "-r" ]; then
# Dev
cargo build -p bitwarden-wasm-internal --target wasm32-unknown-unknown -Ctarget-feature=+simd128
cargo build -p bitwarden-wasm-internal --target wasm32-unknown-unknown
wasm-bindgen --target bundler --out-dir languages/js/sdk-internal ./target/wasm32-unknown-unknown/debug/bitwarden_wasm_internal.wasm
wasm-bindgen --target nodejs --out-dir languages/js/sdk-internal/node ./target/wasm32-unknown-unknown/debug/bitwarden_wasm_internal.wasm
else
# Release
RUSTFLAGS=-Ctarget-feature=+simd128 cargo build -p bitwarden-wasm-internal --target wasm32-unknown-unknown --release
cargo build -p bitwarden-wasm-internal --target wasm32-unknown-unknown --release
wasm-bindgen --target bundler --out-dir languages/js/sdk-internal ./target/wasm32-unknown-unknown/release/bitwarden_wasm_internal.wasm
wasm-bindgen --target nodejs --out-dir languages/js/sdk-internal/node ./target/wasm32-unknown-unknown/release/bitwarden_wasm_internal.wasm
fi
Expand Down
4 changes: 2 additions & 2 deletions crates/bitwarden-wasm-internal/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ impl ClientCrypto {
Ok(signature)
}

Check warning on line 127 in crates/bitwarden-wasm-internal/src/crypto.rs

View check run for this annotation

Codecov / codecov/patch

crates/bitwarden-wasm-internal/src/crypto.rs#L124-L127

Added lines #L124 - L127 were not covered by tests

pub fn verify_ed25519(data: Vec<u8>, signature: Vec<u8>, public: Vec<u8>) -> Result<bool> {
let res = bitwarden_crypto::ed25519::verify(data, signature, public)?;
pub fn verify_ed25519(data: Vec<u8>, signature: Vec<u8>, public_key: Vec<u8>) -> Result<bool> {
let res = bitwarden_crypto::ed25519::verify(data, signature, public_key)?;
Ok(res)
}

Check warning on line 132 in crates/bitwarden-wasm-internal/src/crypto.rs

View check run for this annotation

Codecov / codecov/patch

crates/bitwarden-wasm-internal/src/crypto.rs#L129-L132

Added lines #L129 - L132 were not covered by tests

Expand Down

0 comments on commit 6690332

Please sign in to comment.