Skip to content

BLS Signature PR with clippy fixed #2178

BLS Signature PR with clippy fixed

BLS Signature PR with clippy fixed #2178

Triggered via pull request August 30, 2024 13:51
Status Failure
Total duration 6m 33s
Artifacts

template-test-current.yml

on: pull_request
Template tool test - current (unreleased) templates
6m 24s
Template tool test - current (unreleased) templates
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 3 warnings
[clippy] vm/src/crypto_functions.rs#L24: vm/src/crypto_functions.rs#L24
error[E0433]: failed to resolve: use of undeclared type `PublicKey` --> vm/src/crypto_functions.rs:24:18 | 24 | let public = PublicKey::from_bytes(key); | ^^^^^^^^^ use of undeclared type `PublicKey` | help: consider importing one of these items | 1 + use blst::min_pk::PublicKey; | 1 + use blst::min_sig::PublicKey; |
[clippy] vm/src/crypto_functions.rs#L29: vm/src/crypto_functions.rs#L29
error[E0308]: mismatched types --> vm/src/crypto_functions.rs:29:37 | 29 | let sig = Signature::from_bytes(signature); | --------------------- ^^^^^^^^^ expected `&[u8; 64]`, found `&[u8]` | | | arguments to this function are incorrect | = note: expected reference `&[u8; 64]` found reference `&[u8]` note: associated function defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ed25519-2.2.3/src/lib.rs:313:12 | 313 | pub fn from_bytes(bytes: &SignatureBytes) -> Self { | ^^^^^^^^^^
[clippy] vm/src/crypto_functions.rs#L30: vm/src/crypto_functions.rs#L30
error[E0599]: no method named `is_err` found for struct `ed25519_dalek::Signature` in the current scope --> vm/src/crypto_functions.rs:30:12 | 30 | if sig.is_err() { | ^^^^^^ method not found in `Signature`
[clippy] vm/src/crypto_functions.rs#L34: vm/src/crypto_functions.rs#L34
error[E0599]: no method named `unwrap` found for struct `ed25519_dalek::Signature` in the current scope --> vm/src/crypto_functions.rs:34:42 | 34 | public.unwrap().verify(message, &sig.unwrap()).is_ok() | ^^^^^^ method not found in `Signature`
[clippy] vm/src/crypto_functions.rs#L24: vm/src/crypto_functions.rs#L24
error[E0433]: failed to resolve: use of undeclared type `PublicKey` --> vm/src/crypto_functions.rs:24:18 | 24 | let public = PublicKey::from_bytes(key); | ^^^^^^^^^ use of undeclared type `PublicKey` | help: consider importing one of these items | 1 + use blst::min_pk::PublicKey; | 1 + use blst::min_sig::PublicKey; |
[clippy] vm/src/crypto_functions.rs#L29: vm/src/crypto_functions.rs#L29
error[E0308]: mismatched types --> vm/src/crypto_functions.rs:29:37 | 29 | let sig = Signature::from_bytes(signature); | --------------------- ^^^^^^^^^ expected `&[u8; 64]`, found `&[u8]` | | | arguments to this function are incorrect | = note: expected reference `&[u8; 64]` found reference `&[u8]` note: associated function defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ed25519-2.2.3/src/lib.rs:313:12 | 313 | pub fn from_bytes(bytes: &SignatureBytes) -> Self { | ^^^^^^^^^^
[clippy] vm/src/crypto_functions.rs#L30: vm/src/crypto_functions.rs#L30
error[E0599]: no method named `is_err` found for struct `ed25519_dalek::Signature` in the current scope --> vm/src/crypto_functions.rs:30:12 | 30 | if sig.is_err() { | ^^^^^^ method not found in `Signature`
[clippy] vm/src/crypto_functions.rs#L34: vm/src/crypto_functions.rs#L34
error[E0599]: no method named `unwrap` found for struct `ed25519_dalek::Signature` in the current scope --> vm/src/crypto_functions.rs:34:42 | 34 | public.unwrap().verify(message, &sig.unwrap()).is_ok() | ^^^^^^ method not found in `Signature`
Template tool test - current (unreleased) templates: vm/src/crypto_functions.rs#L24
failed to resolve: use of undeclared type `PublicKey`
Template tool test - current (unreleased) templates: vm/src/crypto_functions.rs#L30
no method named `is_err` found for struct `ed25519_dalek::Signature` in the current scope
Template tool test - current (unreleased) templates: vm/src/crypto_functions.rs#L34
no method named `unwrap` found for struct `ed25519_dalek::Signature` in the current scope
Template tool test - current (unreleased) templates
Process completed with exit code 101.
Template tool test - current (unreleased) templates
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Template tool test - current (unreleased) templates
Unexpected input(s) 'default', valid inputs are ['toolchain', 'target', 'components', 'cache', 'cache-workspaces', 'cache-on-failure', 'matcher', 'rustflags']
Template tool test - current (unreleased) templates
Unexpected input(s) 'default', valid inputs are ['toolchain', 'target', 'components', 'cache', 'cache-workspaces', 'cache-on-failure', 'matcher', 'rustflags']