Files
Tony Arcieri e0c357392c ecdsa: remove TryFrom/TryInto imports (#454) (#386)
Now that we've upgraded to Rust 2021 edition, these are now available
via the prelude, making explicit imports redundant.
2021-10-21 17:19:28 -06:00

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());
}