mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
fix full_crypto (#4133)
* hopefully fixing api-client with this * another use statement needed * using full path for Vec * next try * yet again * cleanup
This commit is contained in:
@@ -141,7 +141,7 @@ macro_rules! app_crypto_pair {
|
||||
<$pair>::verify_weak(sig, message, pubkey)
|
||||
}
|
||||
fn public(&self) -> Self::Public { Public(self.0.public()) }
|
||||
fn to_raw_vec(&self) -> Vec<u8> { self.0.to_raw_vec() }
|
||||
fn to_raw_vec(&self) -> $crate::Vec<u8> { self.0.to_raw_vec() }
|
||||
}
|
||||
|
||||
impl $crate::AppKey for Pair {
|
||||
|
||||
@@ -41,9 +41,9 @@ pub trait AppKey: 'static + Send + Sync + Sized + CryptoType + Clone {
|
||||
}
|
||||
|
||||
/// Type which implements Hash in std, not when no-std (std variant).
|
||||
#[cfg(feature = "std")]
|
||||
#[cfg(any(feature = "std", feature = "full_crypto"))]
|
||||
pub trait MaybeHash: rstd::hash::Hash {}
|
||||
#[cfg(feature = "std")]
|
||||
#[cfg(any(feature = "std", feature = "full_crypto"))]
|
||||
impl<T: rstd::hash::Hash> MaybeHash for T {}
|
||||
|
||||
/// Type which implements Hash in std, not when no-std (no-std variant).
|
||||
|
||||
Reference in New Issue
Block a user