mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 12:31:03 +00:00
Adds with_pair! macro to application-crypto (#4885)
* Adds `with_pair!` macro to application-crypto This macro will "generate" the given code only when the crypto pair is available. So, when either the `std` or the `full_crypto` feature is enabled. * Fix example
This commit is contained in:
@@ -25,9 +25,10 @@ mod app {
|
||||
app_crypto!(sr25519, AUTHORITY_DISCOVERY);
|
||||
}
|
||||
|
||||
/// An authority discovery authority keypair.
|
||||
#[cfg(feature = "std")]
|
||||
pub type AuthorityPair = app::Pair;
|
||||
sp_application_crypto::with_pair! {
|
||||
/// An authority discovery authority keypair.
|
||||
pub type AuthorityPair = app::Pair;
|
||||
}
|
||||
|
||||
/// An authority discovery authority identifier.
|
||||
pub type AuthorityId = app::Public;
|
||||
|
||||
Reference in New Issue
Block a user