mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Fix no_std+alloc builds.
This commit is contained in:
parent
52ee801022
commit
1342e2a3a4
2 changed files with 3 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ pub fn verify_batch(
|
|||
public_keys: &[PublicKey],
|
||||
) -> Result<(), SignatureError>
|
||||
{
|
||||
const ASSERT_MESSAGE: &'static [u8] = b"The number of messages, signatures, and public keys must be equal.";
|
||||
const ASSERT_MESSAGE: &'static str = "The number of messages, signatures, and public keys must be equal.";
|
||||
assert!(signatures.len() == messages.len(), ASSERT_MESSAGE);
|
||||
assert!(signatures.len() == public_keys.len(), ASSERT_MESSAGE);
|
||||
assert!(public_keys.len() == messages.len(), ASSERT_MESSAGE);
|
||||
|
|
|
|||
|
|
@ -255,6 +255,8 @@
|
|||
#[macro_use]
|
||||
extern crate std;
|
||||
|
||||
#[cfg(all(feature = "alloc", not(feature = "std")))]
|
||||
extern crate alloc;
|
||||
extern crate clear_on_drop;
|
||||
extern crate curve25519_dalek;
|
||||
extern crate failure;
|
||||
|
|
|
|||
Loading…
Reference in a new issue