mirror of
https://github.com/RustCrypto/signatures
synced 2026-06-21 13:45:42 +00:00
e0c357392c
Now that we've upgraded to Rust 2021 edition, these are now available via the prelude, making explicit imports redundant.
15 lines
369 B
Rust
15 lines
369 B
Rust
//! Smoke tests which use `MockCurve`
|
|
|
|
#![cfg(feature = "dev")]
|
|
|
|
use elliptic_curve::dev::MockCurve;
|
|
|
|
type Signature = ecdsa::Signature<MockCurve>;
|
|
type SignatureBytes = ecdsa::SignatureBytes<MockCurve>;
|
|
|
|
#[test]
|
|
fn rejects_all_zero_signature() {
|
|
let all_zero_bytes = SignatureBytes::default();
|
|
assert!(Signature::try_from(all_zero_bytes.as_ref()).is_err());
|
|
}
|