mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-29 01:31:33 +00:00
@ -81,6 +81,12 @@ impl DecodingError {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(
|
||||
feature = "ecdsa",
|
||||
feature = "secp256k1",
|
||||
feature = "ed25519",
|
||||
feature = "rsa"
|
||||
))]
|
||||
pub(crate) fn decoding_unsupported(key_type: &'static str) -> Self {
|
||||
Self {
|
||||
msg: format!("decoding {key_type} key from Protobuf is unsupported"),
|
||||
|
@ -33,6 +33,12 @@
|
||||
//! (e.g. [ed25519 binary format](https://datatracker.ietf.org/doc/html/rfc8032#section-5.1.5)).
|
||||
//! All key types have functions to enable conversion to/from their binary representations.
|
||||
|
||||
#[cfg(any(
|
||||
feature = "ecdsa",
|
||||
feature = "secp256k1",
|
||||
feature = "ed25519",
|
||||
feature = "rsa"
|
||||
))]
|
||||
mod proto {
|
||||
include!("generated/mod.rs");
|
||||
pub use self::keys_proto::*;
|
||||
|
Reference in New Issue
Block a user