Skip to content

Commit

Permalink
Remove unused dependency and fix error code
Browse files Browse the repository at this point in the history
  • Loading branch information
orhoj committed Jan 22, 2024
1 parent ff4c0eb commit ccab496
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion crypto-jni/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crypto-jni/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ edition = "2018"
jni = "0.19.0"
rand = "=0.8"
ed25519-dalek = "=2.0"
curve25519-dalek = "4.1"
anyhow = "1.0"
serde = "1.0"
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion crypto-jni/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub extern "system" fn Java_com_concordium_sdk_crypto_CryptoJniNative_verify(

let public_key_bytes_array: [u8; 32] = match public_key_bytes.try_into() {
Ok(s) => s,
Err(_) => return MALFORMED_SECRET_KEY,
Err(_) => return MALFORMED_PUBLIC_KEY,
};

let public_key = match VerifyingKey::from_bytes(&public_key_bytes_array) {
Expand Down

0 comments on commit ccab496

Please sign in to comment.