diff --git a/fastcrypto-zkp/src/bls12381/api/tests.rs b/fastcrypto-zkp/src/bls12381/api/tests.rs index 372204948a..b20ef4094c 100644 --- a/fastcrypto-zkp/src/bls12381/api/tests.rs +++ b/fastcrypto-zkp/src/bls12381/api/tests.rs @@ -219,6 +219,10 @@ fn test_prepare_pvk_bytes() { let mut modified_bytes = vk_bytes.clone(); modified_bytes.pop(); assert!(prepare_pvk_bytes(&modified_bytes).is_err()); + + // Empty vk + let empty_vk = vec![]; + assert!(prepare_pvk_bytes(&empty_vk).is_err()); } #[test]