(feat): add crypto interface for MTPClient in wasm
Some checks failed
CI / rustfmt (push) Successful in 17s
CI / wasm build (push) Successful in 1m18s
CI / clippy (push) Successful in 1m32s
CI / test (push) Successful in 1m53s
CI / example (push) Successful in 1m35s
CI / duplicate code (push) Failing after 31s
CI / web client (push) Failing after 32s
CI / cargo-machete (push) Successful in 1m9s
CI / cargo-deny (push) Failing after 2m31s
Some checks failed
CI / rustfmt (push) Successful in 17s
CI / wasm build (push) Successful in 1m18s
CI / clippy (push) Successful in 1m32s
CI / test (push) Successful in 1m53s
CI / example (push) Successful in 1m35s
CI / duplicate code (push) Failing after 31s
CI / web client (push) Failing after 32s
CI / cargo-machete (push) Successful in 1m9s
CI / cargo-deny (push) Failing after 2m31s
(qol): update readme (fix): small bug in keypair.rs
This commit is contained in:
parent
04d6240452
commit
6b9bbb6ebf
6 changed files with 144 additions and 29 deletions
|
|
@ -186,7 +186,7 @@ fn bytes_to_hex(bytes: &[u8]) -> String {
|
|||
}
|
||||
|
||||
fn hex_to_bytes(s: &str) -> Result<Vec<u8>, crate::error::CryptoError> {
|
||||
if s.len() % 2 != 0 {
|
||||
if !s.len().is_multiple_of(2) {
|
||||
return Err(crate::error::CryptoError::InvalidHex);
|
||||
}
|
||||
(0..s.len())
|
||||
|
|
|
|||
Loading…
Reference in a new issue