mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 19:51:05 +00:00
Fix compilation problems due to ed25519-dalek 1.0.0-pre.4 (#6676)
* Fix compilation problems due to ed25519-dalek 1.0.0-pre.4 * Update libp2p-core * Revert rand downgrade
This commit is contained in:
@@ -29,6 +29,8 @@ use codec::{Encode, Decode};
|
||||
use blake2_rfc;
|
||||
#[cfg(feature = "full_crypto")]
|
||||
use core::convert::TryFrom;
|
||||
#[cfg(feature = "full_crypto")]
|
||||
use ed25519_dalek::{Signer as _, Verifier as _};
|
||||
#[cfg(feature = "std")]
|
||||
use substrate_bip39::seed_from_entropy;
|
||||
#[cfg(feature = "std")]
|
||||
@@ -513,7 +515,7 @@ impl TraitPair for Pair {
|
||||
Err(_) => return false,
|
||||
};
|
||||
|
||||
let sig = match ed25519_dalek::Signature::from_bytes(sig) {
|
||||
let sig = match ed25519_dalek::Signature::try_from(sig) {
|
||||
Ok(s) => s,
|
||||
Err(_) => return false
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user